Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pathutil.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 | 377e8ddaebef |
children | cd022a11ec83 |
line wrap: on
line diff
--- a/mercurial/pathutil.py Thu Sep 07 22:36:54 2017 +0900 +++ b/mercurial/pathutil.py Sun Sep 03 14:32:11 2017 +0900 @@ -203,9 +203,9 @@ See also issue3033 for detail about need of this function. - >>> normasprefix('/foo/bar').replace(os.sep, '/') + >>> normasprefix(b'/foo/bar').replace(os.sep, b'/') '/foo/bar/' - >>> normasprefix('/').replace(os.sep, '/') + >>> normasprefix(b'/').replace(os.sep, b'/') '/' ''' d, p = os.path.splitdrive(path)