Pylint errors in Python 2 /Python 3 compatibility blocks
Opened this issue · 0 comments
JamesParrott commented
Describe the feature request
Nice to have.
An undefined attribute, and undefined names (which are only defined in Python 2 or the deps).
pylint --disable=R,C,W *shapefile.py
************* Module shapefile
shapefile.py:91:4: E0611: No name 'izip' in module 'itertools' (no-name-in-module)
shapefile.py:93:4: E0401: Unable to import 'urllib2' (import-error)
shapefile.py:94:4: E0401: Unable to import 'urlparse' (import-error)
shapefile.py:138:25: E0602: Undefined variable 'unicode' (undefined-variable)
shapefile.py:149:19: E0602: Undefined variable 'unicode' (undefined-variable)
shapefile.py:155:27: E0602: Undefined variable 'unicode' (undefined-variable)
shapefile.py:166:29: E0602: Undefined variable 'basestring' (undefined-variable)
shapefile.py:2774:12: E1101: Class 'OutputChecker' has no 'summarize' member (no-member)
------------------------------------------------------------------
Your code has been rated at 9.82/10 (previous run: 9.50/10, +0.32)
https://github.com/GeospatialPython/pyshp/actions/runs/10945871634/job/30391061744
Contributions
- I am interested in implementing the described feature request and submit as a PR.