dagparser: make print statement in doctest Py3 portable
authorAugie Fackler <augie@google.com>
Thu, 15 Jun 2017 13:32:02 -0400
changeset 33742 c91013452b33
parent 33741 29238dbf718e
child 33743 65de152ba375
dagparser: make print statement in doctest Py3 portable Differential Revision: https://phab.mercurial-scm.org/D277
mercurial/dagparser.py
--- a/mercurial/dagparser.py	Thu Jun 15 13:31:33 2017 -0400
+++ b/mercurial/dagparser.py	Thu Jun 15 13:32:02 2017 -0400
@@ -156,7 +156,7 @@
     Error:
 
         >>> try: list(parsedag('+1 bad'))
-        ... except Exception, e: print e
+        ... except Exception, e: print(e)
         invalid character in dag description: bad...
 
     '''