mercurial/commandserver.py
changeset 25660 328739ea70c3
parent 23324 69f86b937035
child 25832 5857be01962e
--- a/mercurial/commandserver.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/commandserver.py	Tue Jun 23 22:20:08 2015 -0700
@@ -300,9 +300,9 @@
                 sv.serve()
             # handle exceptions that may be raised by command server. most of
             # known exceptions are caught by dispatch.
-            except util.Abort, inst:
+            except util.Abort as inst:
                 ui.warn(_('abort: %s\n') % inst)
-            except IOError, inst:
+            except IOError as inst:
                 if inst.errno != errno.EPIPE:
                     raise
             except KeyboardInterrupt: