python-pillow / Sane

Python interface to the SANE scanner and frame grabber
Other
54 stars 19 forks source link

class _SaneIterator next method only for Python 2.7 #67

Closed dkellygb closed 3 years ago

dkellygb commented 3 years ago

I installed python3-sane from the Debian/Ubuntu repositories. It installed version (2.8.3-4build1). In sane.py, the class _SaneIterator has a def next(self): method. For Python 3 it should be def __next__(self):

manisandro commented 3 years ago

Thanks for reporting the issue, can you submit a PR with the fix?

radarhere commented 3 years ago

This was actually already done in #59. I guess the problem is that there hasn't been a release since then.

manisandro commented 3 years ago

Fair point, I've tagged v2.9.0 now.