diff mercurial/dagparser.py @ 34219:dfd009e5f9f2

py3: iterate bytes as a byte string in dagparser.py
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Sep 2017 15:32:45 +0900
parents a48ad118c558
children f0b6fbea00cf
line wrap: on
line diff
--- a/mercurial/dagparser.py	Sun Sep 03 15:28:39 2017 +0900
+++ b/mercurial/dagparser.py	Sun Sep 03 15:32:45 2017 +0900
@@ -181,7 +181,7 @@
         else:
             return labels[ref]
 
-    chiter = (c for c in desc)
+    chiter = pycompat.iterbytestr(desc)
 
     def nextch():
         return next(chiter, '\0')