mercurial/dagparser.py
changeset 34153 0f9936d80e01
parent 34152 a8994d08e4a2
child 34216 da9c4b0693c5
--- a/mercurial/dagparser.py	Sun Sep 03 14:56:31 2017 +0900
+++ b/mercurial/dagparser.py	Sun Sep 03 15:16:01 2017 +0900
@@ -157,7 +157,7 @@
 
         >>> from . import pycompat
         >>> try: list(parsedag(b'+1 bad'))
-        ... except Exception, e: print(pycompat.sysstr(bytes(e)))
+        ... except Exception as e: print(pycompat.sysstr(bytes(e)))
         invalid character in dag description: bad...
 
     '''