Show More
@@ -43,7 +43,8 b' class tarit:' | |||
|
43 | 43 | if isinstance(dest, str): |
|
44 | 44 | self.z = tarfile.open(dest, mode='w:'+kind) |
|
45 | 45 | else: |
|
46 | self.z = tarfile.open(mode='w|'+kind, fileobj=dest) | |
|
46 | # Python 2.5-2.5.1 have a regression that requires a name arg | |
|
47 | self.z = tarfile.open(name='', mode='w|'+kind, fileobj=dest) | |
|
47 | 48 | |
|
48 | 49 | def addfile(self, name, mode, data): |
|
49 | 50 | i = tarfile.TarInfo(self.prefix + name) |
General Comments 0
You need to be logged in to leave comments.
Login now