mercurial/localrepo.py
changeset 7063 be2daa324ddf
parent 6877 1d38f3605b20
child 7064 582dac23ebac
--- a/mercurial/localrepo.py	Fri Sep 26 16:27:03 2008 +0200
+++ b/mercurial/localrepo.py	Fri Oct 03 23:13:03 2008 +0200
@@ -2107,7 +2107,7 @@
             try:
                 name, size = l.split('\0', 1)
                 size = int(size)
-            except ValueError, TypeError:
+            except (ValueError, TypeError):
                 raise util.UnexpectedOutput(
                     _('Unexpected response from remote server:'), l)
             self.ui.debug('adding %s (%s)\n' % (name, util.bytecount(size)))