Show More
@@ -72,7 +72,7 b' class tarit:' | |||||
72 | if kind == 'gz': |
|
72 | if kind == 'gz': | |
73 | mode = mode[0] |
|
73 | mode = mode[0] | |
74 | if not fileobj: |
|
74 | if not fileobj: | |
75 | fileobj = open(name, mode) |
|
75 | fileobj = open(name, mode + 'b') | |
76 | gzfileobj = self.GzipFileWithTime(name, mode + 'b', |
|
76 | gzfileobj = self.GzipFileWithTime(name, mode + 'b', | |
77 | zlib.Z_BEST_COMPRESSION, |
|
77 | zlib.Z_BEST_COMPRESSION, | |
78 | fileobj, timestamp=mtime) |
|
78 | fileobj, timestamp=mtime) |
General Comments 0
You need to be logged in to leave comments.
Login now