[Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master
Alessandro Pasotti
apasotti at gmail.com
Fri Jul 1 03:34:01 PDT 2016
Thanks!
I thought that the RefactoringTool: was taking care of that.
Isn't the 2to3 run automatically on the test python files too?
In my case the error was not directly in a test but in a file imported by a
test: offlineditingtestbase.py is that the reason why it was not refactored?
2016-07-01 12:15 GMT+02:00 Matthias Kuhn <matthias at opengis.ch>:
> Hi Alessandro
>
>
> On 07/01/2016 11:59 AM, Alessandro Pasotti wrote:
> > Hi,
> >
> > I'm trying to adapt a test to Py3/Qt5 and I get this odd error:
> >
> > AttributeError: 'QgsFeatureIterator' object has no attribute 'next'
>
>
> ./scripts/2to3
>
> is your friend
>
> http://stackoverflow.com/a/12274637/2319028
>
> Matthias
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160701/e7234f03/attachment.html>
More information about the Qgis-developer
mailing list