[PATCH 8 of 8 py3] drawdag: port to python 3
Yuya Nishihara
yuya at tcha.org
Sat Sep 16 08:16:26 EDT 2017
On Fri, 15 Sep 2017 19:14:11 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1503465796 14400
> # Wed Aug 23 01:23:16 2017 -0400
> # Node ID d08554602cdbd245ddd213af325473da037a240f
> # Parent 962f6b24541c419fc135ebd75de8529344d85d31
> drawdag: port to python 3
Queued 6-8, thanks.
> - >>> pprint.pprint({k: [vv for vv in v]
> - ... for k, v in _parseasciigraph(br'''
> + >>> pprint.pprint({pycompat.sysstr(k): [pycompat.sysstr(vv) for vv in v]
> + ... for k, v in _parseasciigraph(b'''
> ... o foo
> ... |\
> ... +---o bar
> @@ -150,11 +151,11 @@ def _parseasciigraph(text):
> ... ''').items()})
> {'a': [],
> 'b': ['a'],
> - 'bar': ['b', 'a'],
> + 'bar': ['baz'],
> 'baz': [],
> 'c': ['b'],
> 'd': ['b'],
> - 'foo': ['baz', 'b']}
> + 'foo': ['b']}
> """
Fixed these test changes caused by missed br''.
More information about the Mercurial-devel
mailing list