summaryrefslogtreecommitdiff
path: root/Lib/python/pyiterators.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/python/pyiterators.swg')
-rw-r--r--Lib/python/pyiterators.swg3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/python/pyiterators.swg b/Lib/python/pyiterators.swg
index f93594c4c..110c431fe 100644
--- a/Lib/python/pyiterators.swg
+++ b/Lib/python/pyiterators.swg
@@ -344,7 +344,8 @@ namespace swig
%feature("python:slot", "tp_iternext", functype="iternextfunc") SwigPyIterator::__next__;
#else
%extend SwigPyIterator {
- %pythoncode {def __iter__(self): return self}
+ %pythoncode {def __iter__(self):
+ return self}
}
#endif