Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.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 | d5b2beca16c0 |
children | beede158ea8a |
line wrap: on
line diff
--- a/mercurial/windows.py Thu Sep 07 22:36:54 2017 +0900 +++ b/mercurial/windows.py Sun Sep 03 14:32:11 2017 +0900 @@ -267,15 +267,15 @@ _needsshellquote = None def shellquote(s): r""" - >>> shellquote(r'C:\Users\xyz') + >>> shellquote(br'C:\Users\xyz') '"C:\\Users\\xyz"' - >>> shellquote(r'C:\Users\xyz/mixed') + >>> shellquote(br'C:\Users\xyz/mixed') '"C:\\Users\\xyz/mixed"' >>> # Would be safe not to quote too, since it is all double backslashes - >>> shellquote(r'C:\\Users\\xyz') + >>> shellquote(br'C:\\Users\\xyz') '"C:\\\\Users\\\\xyz"' >>> # But this must be quoted - >>> shellquote(r'C:\\Users\\xyz/abc') + >>> shellquote(br'C:\\Users\\xyz/abc') '"C:\\\\Users\\\\xyz/abc"' """ global _quotere