##// END OF EJS Templates
py3: iterate bytes as a byte string in dagparser.py
Yuya Nishihara -
r34209:dfd009e5 default
parent child Browse files
Show More
@@ -181,7 +181,7 b' def parsedag(desc):'
181 else:
181 else:
182 return labels[ref]
182 return labels[ref]
183
183
184 chiter = (c for c in desc)
184 chiter = pycompat.iterbytestr(desc)
185
185
186 def nextch():
186 def nextch():
187 return next(chiter, '\0')
187 return next(chiter, '\0')
@@ -48,8 +48,7 b" testmod('mercurial.changelog')"
48 testmod('mercurial.color')
48 testmod('mercurial.color')
49 testmod('mercurial.config')
49 testmod('mercurial.config')
50 testmod('mercurial.context')
50 testmod('mercurial.context')
51 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE,
51 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
52 py3=False) # py3: use of str()
53 testmod('mercurial.dispatch')
52 testmod('mercurial.dispatch')
54 testmod('mercurial.encoding', py3=False) # py3: multiple encoding issues
53 testmod('mercurial.encoding', py3=False) # py3: multiple encoding issues
55 testmod('mercurial.formatter', py3=False) # py3: write bytes to stdout
54 testmod('mercurial.formatter', py3=False) # py3: write bytes to stdout
General Comments 0
You need to be logged in to leave comments. Login now