Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dagparser.py @ 34152:a8994d08e4a2
doctest: use print_function and convert bytes to unicode where needed
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 14:56:31 +0900 |
parents | 0fa781320203 |
children | 0f9936d80e01 |
line wrap: on
line diff
--- 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... '''