diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -675,7 +675,7 @@ length = len(text) while pos < length: symbol = b''.join(itertools.takewhile(lambda ch: ch not in special, - view[pos:])) + pycompat.iterbytestr(view[pos:]))) if symbol: yield (b'symbol', symbol, pos) pos += len(symbol)