Skip to content
Snippets Groups Projects
Commit 184b64a2 authored by Seblu's avatar Seblu
Browse files

Add tarfile from python 2.7

This allow method add in Tarfile to have filter parameter.
This give us filter capa on file to include.
Should be removed when python 2.7 will be the minimum version
parent 92bcc28c
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,10 @@ import time
import tarfile
import StringIO
import re
# Use tarfile from python 2.7 which include filter parameter in add method.
# This is really needed to filter an modify tarball content on the fly.
# Should be removed when python 2.7 will be the minimum python version
from installsystems import tarfile
class Tarball(tarfile.TarFile):
def add_str(self, name, content, ftype, mode):
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment