Re: [Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master

2016-07-01 Thread Matthias Kuhn
On 07/01/2016 12:34 PM, Alessandro Pasotti wrote: > Thanks! > > I thought that the RefactoringTool: was taking care of that. I guess you are referring to -DPORT_PLUGINS=ON (which is enabled on travis/py3). > Isn't the 2to3 run automatically on the test python files too? No. Actually it would b

Re: [Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master

2016-07-01 Thread Alessandro Pasotti
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-

Re: [Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master

2016-07-01 Thread Matthias Kuhn
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 Ma

[Qgis-developer] Missing next() method in Python 3 QgsFeatureIterator in master

2016-07-01 Thread Alessandro Pasotti
Hi, I'm trying to adapt a test to Py3/Qt5 and I get this odd error: AttributeError: 'QgsFeatureIterator' object has no attribute 'next' The C++-like call works fine: fit=layer.dataProvider().getFeatures(request) f=QgsFeature() fit.nextFeature(f) True the layer is a test layer: layer.dataProvi