changeset 33742:c91013452b33

dagparser: make print statement in doctest Py3 portable Differential Revision: https://phab.mercurial-scm.org/D277
author Augie Fackler <augie@google.com>
date Thu, 15 Jun 2017 13:32:02 -0400
parents 29238dbf718e
children 65de152ba375
files mercurial/dagparser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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...
 
     '''