cosmetic for generated python code

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-20 07:33:18 +00:00
commit a66fa50a8c
4 changed files with 10 additions and 30 deletions

View file

@ -316,10 +316,7 @@ namespace swig
%nodirector PySwigIterator;
%extend PySwigIterator {
%pythoncode {
def __iter__(self):
return self
}
%pythoncode {def __iter__(self): return self}
}
%catches(swig::stop_iteration) PySwigIterator::value() const;