Patchwork D1480: py3: define __next__ in patch.py

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2017, 3:11 a.m.
Message ID <c6853431d9851ece95b344e51cc84cd0@localhost.localdomain>
Download mbox | patch
Permalink /patch/25883/
State Not Applicable
Headers show

Comments

phabricator - Dec. 2, 2017, 3:11 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa1d2fc32bb99: py3: define __next__ in patch.py (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1480?vs=3720&id=4074

REVISION DETAIL
  https://phab.mercurial-scm.org/D1480

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit, yuja
Cc: mercurial-devel

Patch

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 = []