author | Thomas Arendsen Hein <thomas@intevation.de> |
Sun, 30 Apr 2006 22:46:54 +0200 | |
changeset 2169 | 4564794b6f55 |
parent 2168 | dd4ec4576cc8 |
child 2170 | 29eeb2717915 |
--- a/mercurial/archival.py Sun Apr 30 22:43:41 2006 +0200 +++ b/mercurial/archival.py Sun Apr 30 22:46:54 2006 +0200 @@ -83,9 +83,7 @@ if not isinstance(dest, str): try: dest.tell() - except AttributeError: - dest = tellable(dest) - except IOError: + except (AttributeError, IOError): dest = tellable(dest) self.z = zipfile.ZipFile(dest, 'w', compress and zipfile.ZIP_DEFLATED or