hgext/convert/convcmd.py
changeset 25660 328739ea70c3
parent 24395 216fa1ba9993
child 25741 86fe3c404c1e
--- a/hgext/convert/convcmd.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/hgext/convert/convcmd.py	Tue Jun 23 22:20:08 2015 -0700
@@ -54,7 +54,7 @@
         try:
             if not type or name == type:
                 return source(ui, path, rev), sortmode
-        except (NoRepo, MissingTool), inst:
+        except (NoRepo, MissingTool) as inst:
             exceptions.append(inst)
     if not ui.quiet:
         for inst in exceptions:
@@ -68,9 +68,9 @@
         try:
             if not type or name == type:
                 return sink(ui, path)
-        except NoRepo, inst:
+        except NoRepo as inst:
             ui.note(_("convert: %s\n") % inst)
-        except MissingTool, inst:
+        except MissingTool as inst:
             raise util.Abort('%s\n' % inst)
     raise util.Abort(_('%s: unknown repository type') % path)