Submitter | phabricator |
---|---|
Date | March 14, 2019, 3:41 p.m. |
Message ID | <672ef90971fa785875d3c6ea51c5871a@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/39248/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -671,8 +671,10 @@ pos = 0 length = len(text) while pos < length: - symbol = b''.join(itertools.takewhile(lambda ch: ch not in special, - view[pos:])) + symbol = b''.join(itertools.takewhile( + lambda ch: ch not in special, + pycompat.iterbytestr(view[pos:]) + )) if symbol: yield (b'symbol', symbol, pos) pos += len(symbol)