##// END OF EJS Templates
archival: ensure file mode for gzipfile is sysstr...
Augie Fackler -
r36745:d3c231f8 default
parent child Browse files
Show More
@@ -158,7 +158,8 b' class tarit(object):'
158 158 mode = mode[0:1]
159 159 if not fileobj:
160 160 fileobj = open(name, mode + 'b')
161 gzfileobj = self.GzipFileWithTime(name, mode + 'b',
161 gzfileobj = self.GzipFileWithTime(name,
162 pycompat.sysstr(mode + 'b'),
162 163 zlib.Z_BEST_COMPRESSION,
163 164 fileobj, timestamp=mtime)
164 165 self.fileobj = gzfileobj
General Comments 0
You need to be logged in to leave comments. Login now