Show More
@@ -83,9 +83,7 b' class zipit:' | |||||
83 | if not isinstance(dest, str): |
|
83 | if not isinstance(dest, str): | |
84 | try: |
|
84 | try: | |
85 | dest.tell() |
|
85 | dest.tell() | |
86 | except AttributeError: |
|
86 | except (AttributeError, IOError): | |
87 | dest = tellable(dest) |
|
|||
88 | except IOError: |
|
|||
89 | dest = tellable(dest) |
|
87 | dest = tellable(dest) | |
90 | self.z = zipfile.ZipFile(dest, 'w', |
|
88 | self.z = zipfile.ZipFile(dest, 'w', | |
91 | compress and zipfile.ZIP_DEFLATED or |
|
89 | compress and zipfile.ZIP_DEFLATED or |
General Comments 0
You need to be logged in to leave comments.
Login now