Skip to content

Commit 24b8c86

Browse files
committed
python2 uses .next(), not __next__
1 parent df372f9 commit 24b8c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etgtools/tweaker_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def wxListWrapperTemplate(ListClass, ItemClass, module, RealItemClass=None,
878878

879879
c = extractors.ClassDef(name='{ListClass}_iterator'.format(**locals()), abstract=True)
880880
c.addItem(extractors.CppMethodDef(
881-
ItemClass + '*', '__next__', '()', "return self->__next__();"))
881+
ItemClass + '*', 'next', '()', "return self->__next__();"))
882882

883883
c.addHeaderCode("""\
884884
{TypeDef}

0 commit comments

Comments
 (0)