Permalink
Browse files

Fixed another E701

  • Loading branch information...
1 parent 93e06c0 commit f4fffbf668781f5308d1e944dc25238c93082b1c @jschueller jschueller committed Jun 6, 2014
Showing with 18 additions and 9 deletions.
  1. +2 −1 Lib/python/pycontainer.swg
  2. +8 −4 Lib/python/std_map.i
  3. +8 −4 Lib/python/std_unordered_map.i
View
3 Lib/python/pycontainer.swg
@@ -710,7 +710,8 @@ namespace swig
#if defined(SWIGPYTHON_BUILTIN)
%feature("python:slot", "tp_iter", functype="getiterfunc") iterator;
#else
- %pythoncode {def __iter__(self): return self.iterator()}
+ %pythoncode {def __iter__(self):
+ return self.iterator()}
#endif
}
View
12 Lib/python/std_map.i
@@ -176,10 +176,14 @@
#else
%extend {
- %pythoncode {def __iter__(self): return self.key_iterator()}
- %pythoncode {def iterkeys(self): return self.key_iterator()}
- %pythoncode {def itervalues(self): return self.value_iterator()}
- %pythoncode {def iteritems(self): return self.iterator()}
+ %pythoncode {def __iter__(self):
+ return self.key_iterator()}
+ %pythoncode {def iterkeys(self):
+ return self.key_iterator()}
+ %pythoncode {def itervalues(self):
+ return self.value_iterator()}
+ %pythoncode {def iteritems(self):
+ return self.iterator()}
}
#endif
View
12 Lib/python/std_unordered_map.i
@@ -231,10 +231,14 @@
return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
}
- %pythoncode {def __iter__(self): return self.key_iterator()}
- %pythoncode {def iterkeys(self): return self.key_iterator()}
- %pythoncode {def itervalues(self): return self.value_iterator()}
- %pythoncode {def iteritems(self): return self.iterator()}
+ %pythoncode {def __iter__(self):
+ return self.key_iterator()}
+ %pythoncode {def iterkeys(self):
+ return self.key_iterator()}
+ %pythoncode {def itervalues(self):
+ return self.value_iterator()}
+ %pythoncode {def iteritems(self):
+ return self.iterator()}
}
%enddef

0 comments on commit f4fffbf

Please sign in to comment.