Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 34146:0fa781320203
doctest: bulk-replace string literals with b'' for Python 3
Our code transformer can't rewrite string literals in docstrings, and I
don't want to make the transformer more complex.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 14:32:11 +0900 |
parents | 5361771f9714 |
children | 0e48813cc106 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Thu Sep 07 22:36:54 2017 +0900 +++ b/mercurial/dispatch.py Sun Sep 03 14:32:11 2017 +0900 @@ -607,20 +607,20 @@ The values are listed in the order they appear in args. The options and values are removed from args. - >>> args = ['x', '--cwd', 'foo', 'y'] - >>> _earlygetopt(['--cwd'], args), args + >>> args = [b'x', b'--cwd', b'foo', b'y'] + >>> _earlygetopt([b'--cwd'], args), args (['foo'], ['x', 'y']) - >>> args = ['x', '--cwd=bar', 'y'] - >>> _earlygetopt(['--cwd'], args), args + >>> args = [b'x', b'--cwd=bar', b'y'] + >>> _earlygetopt([b'--cwd'], args), args (['bar'], ['x', 'y']) - >>> args = ['x', '-R', 'foo', 'y'] - >>> _earlygetopt(['-R'], args), args + >>> args = [b'x', b'-R', b'foo', b'y'] + >>> _earlygetopt([b'-R'], args), args (['foo'], ['x', 'y']) - >>> args = ['x', '-Rbar', 'y'] - >>> _earlygetopt(['-R'], args), args + >>> args = [b'x', b'-Rbar', b'y'] + >>> _earlygetopt([b'-R'], args), args (['bar'], ['x', 'y']) """ try: