diff mercurial/archival.py @ 2169:4564794b6f55

Combine catching exceptions added in dd4ec4576cc8 in one except statement.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 30 Apr 2006 22:46:54 +0200
parents dd4ec4576cc8
children 0c0bfea3f72a
line wrap: on
line diff
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -83,9 +83,7 @@ class zipit:
         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