Patchwork D277: dagparser: make print statement in doctest Py3 portable

login
register
mail settings
Submitter phabricator
Date Aug. 8, 2017, 7:49 p.m.
Message ID <differential-rev-PHID-DREV-6lcu2v6xkgb4qqx2ye4x-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/22768/
State Superseded
Headers show

Comments

phabricator - Aug. 8, 2017, 7:49 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/dagparser.py

CHANGE DETAILS




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

Patch

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...
 
     '''