diff mercurial/localrepo.py @ 7064:582dac23ebac

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Mon, 06 Oct 2008 13:51:36 +0200
parents 58dcf10eea2b be2daa324ddf
children 40d105a12cac
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sat Oct 04 10:14:39 2008 +0200
+++ b/mercurial/localrepo.py	Mon Oct 06 13:51:36 2008 +0200
@@ -2019,7 +2019,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)))