Submitter | via Mercurial-devel |
---|---|
Date | March 15, 2017, 5:33 p.m. |
Message ID | <74e92020e65e4014ac88.1489599192@martinvonz.mtv.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/19367/ |
State | Accepted |
Headers | show |
Comments
Patch
diff -r db74b2599efc -r 74e92020e65e mercurial/pycompat.py --- a/mercurial/pycompat.py Wed Mar 15 09:30:50 2017 -0700 +++ b/mercurial/pycompat.py Wed Mar 15 09:32:18 2017 -0700 @@ -78,7 +78,7 @@ def iterbytestr(s): """Iterate bytes as if it were a str object of Python 2""" - return iter(s[i:i + 1] for i in range(len(s))) + return map(bytechr, s) def sysstr(s): """Return a keyword str to be passed to Python functions such as