Mercurial > public > mercurial-scm > hg-stable
diff mercurial/urllibcompat.py @ 36843:5bc7ff103081
py3: use r'' instead of sysstr('') to get around code transformer
Fewer function calls should be better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Mar 2018 15:57:16 +0900 |
parents | 3c15b84ab66c |
children | 5774fc623a18 |
line wrap: on
line diff
--- a/mercurial/urllibcompat.py Sat Mar 10 15:50:09 2018 +0900 +++ b/mercurial/urllibcompat.py Sat Mar 10 15:57:16 2018 +0900 @@ -18,7 +18,7 @@ """Add items that will be populated at the first access""" items = map(_sysstr, items) self._aliases.update( - (item.replace(_sysstr('_'), _sysstr('')).lower(), (origin, item)) + (item.replace(r'_', r'').lower(), (origin, item)) for item in items) def _registeralias(self, origin, attr, name):