mercurial/dagparser.py
changeset 34152 a8994d08e4a2
parent 34146 0fa781320203
child 34153 0f9936d80e01
--- a/mercurial/dagparser.py	Sun Sep 03 15:47:17 2017 +0900
+++ b/mercurial/dagparser.py	Sun Sep 03 14:56:31 2017 +0900
@@ -155,8 +155,9 @@
 
     Error:
 
+        >>> from . import pycompat
         >>> try: list(parsedag(b'+1 bad'))
-        ... except Exception, e: print(e)
+        ... except Exception, e: print(pycompat.sysstr(bytes(e)))
         invalid character in dag description: bad...
 
     '''