D1480: py3: define __next__ in patch.py
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Nov 21 07:53:55 UTC 2017
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This needed to appease Python 3's iterator protocol.
This is crasher #5 in Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1480
AFFECTED FILES
mercurial/patch.py
CHANGE DETAILS
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -149,6 +149,8 @@
raise StopIteration
return l
+ __next__ = next
+
inheader = False
cur = []
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list