# HG changeset patch # User Gregory Szorc # Date 2017-11-21 07:13:09 # Node ID a1d2fc32bb99b29b1fe9ceada851393304e92cd8 # Parent bd8875b6473c9b1bcac3fb19cc049c03da20e612 py3: define __next__ in patch.py This needed to appease Python 3's iterator protocol. This is crasher #5 in Python 3. Differential Revision: https://phab.mercurial-scm.org/D1480 diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -149,6 +149,8 @@ def split(stream): raise StopIteration return l + __next__ = next + inheader = False cur = []