D277: dagparser: make print statement in doctest Py3 portable

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Aug 9 10:18:24 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc91013452b33: dagparser: make print statement in doctest Py3 portable (authored by durin42).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D277?vs=642&id=672

REVISION DETAIL
  https://phab.mercurial-scm.org/D277

AFFECTED FILES
  mercurial/dagparser.py

CHANGE DETAILS

diff --git a/mercurial/dagparser.py b/mercurial/dagparser.py
--- a/mercurial/dagparser.py
+++ b/mercurial/dagparser.py
@@ -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...
 
     '''



To: durin42, #hg-reviewers, quark
Cc: mercurial-devel


More information about the Mercurial-devel mailing list