Show More
@@ -29,6 +29,8 from . import ( | |||||
29 | vfs as vfsmod, |
|
29 | vfs as vfsmod, | |
30 | ) |
|
30 | ) | |
31 |
|
31 | |||
|
32 | from .utils import stringutil | |||
|
33 | ||||
32 | stringio = util.stringio |
|
34 | stringio = util.stringio | |
33 |
|
35 | |||
34 | # from unzip source code: |
|
36 | # from unzip source code: | |
@@ -196,7 +198,7 class tarit(object): | |||||
196 | name, pycompat.sysstr(mode + kind), fileobj |
|
198 | name, pycompat.sysstr(mode + kind), fileobj | |
197 | ) |
|
199 | ) | |
198 | except tarfile.CompressionError as e: |
|
200 | except tarfile.CompressionError as e: | |
199 |
raise error.Abort( |
|
201 | raise error.Abort(stringutil.forcebytestr(e)) | |
200 |
|
202 | |||
201 | if isinstance(dest, bytes): |
|
203 | if isinstance(dest, bytes): | |
202 | self.z = taropen(b'w:', name=dest) |
|
204 | self.z = taropen(b'w:', name=dest) |
General Comments 0
You need to be logged in to leave comments.
Login now