author | Pierre-Yves David <pierre-yves.david@fb.com> |
Mon, 18 May 2015 12:22:44 -0500 | |
changeset 25170 | c69f4f7fe01a |
parent 25169 | 7855d1f5f152 |
child 25171 | d647f97f88dd |
--- a/mercurial/dagparser.py Mon May 18 12:18:00 2015 -0500 +++ b/mercurial/dagparser.py Mon May 18 12:22:44 2015 -0500 @@ -176,10 +176,7 @@ chiter = (c for c in desc) def nextch(): - try: - return chiter.next() - except StopIteration: - return '\0' + return next(chiter, '\0') def nextrun(c, allow): s = ''