hgext/phabricator.py
changeset 41950 e7b84ffb06d9
parent 41906 2b21c7fbb3a1
child 41970 51ba9fbcca52
--- a/hgext/phabricator.py	Thu Mar 14 14:46:29 2019 -0700
+++ b/hgext/phabricator.py	Sat Mar 09 00:44:26 2019 +0000
@@ -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)