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

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2017, 2:18 p.m.
Message ID <4e9e09884d4dc748d67a46173de07192@localhost.localdomain>
Download mbox | patch
Permalink /patch/22787/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2017, 2:18 p.m.
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




To: durin42, #hg-reviewers, quark
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...
 
     '''