##// END OF EJS Templates
archival: our filenames are bytes, not strs...
Augie Fackler -
r36726:7f9a6f5f default
parent child Browse files
Show More
@@ -168,7 +168,7 b' class tarit(object):'
168 return tarfile.open(
168 return tarfile.open(
169 name, pycompat.sysstr(mode + kind), fileobj)
169 name, pycompat.sysstr(mode + kind), fileobj)
170
170
171 if isinstance(dest, str):
171 if isinstance(dest, bytes):
172 self.z = taropen('w:', name=dest)
172 self.z = taropen('w:', name=dest)
173 else:
173 else:
174 self.z = taropen('w|', fileobj=dest)
174 self.z = taropen('w|', fileobj=dest)
@@ -217,7 +217,7 b' class zipit(object):'
217 or compressed with deflate.'''
217 or compressed with deflate.'''
218
218
219 def __init__(self, dest, mtime, compress=True):
219 def __init__(self, dest, mtime, compress=True):
220 if not isinstance(dest, str):
220 if not isinstance(dest, bytes):
221 try:
221 try:
222 dest.tell()
222 dest.tell()
223 except (AttributeError, IOError):
223 except (AttributeError, IOError):
General Comments 0
You need to be logged in to leave comments. Login now