mercurial/hook.py
changeset 25660 328739ea70c3
parent 25328 2cfb0bbf83a1
child 25953 d15b279ddade
--- a/mercurial/hook.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/hook.py	Tue Jun 23 22:20:08 2015 -0700
@@ -80,7 +80,7 @@
         sys.stdout, sys.stderr, sys.stdin = ui.fout, ui.ferr, ui.fin
 
         r = obj(ui=ui, repo=repo, hooktype=name, **args)
-    except Exception, exc:
+    except Exception as exc:
         if isinstance(exc, util.Abort):
             ui.warn(_('error: %s hook failed: %s\n') %
                          (hname, exc.args[0]))