Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylint errors in Python 2 /Python 3 compatibility blocks #306

Open
1 task
JamesParrott opened this issue Sep 19, 2024 · 0 comments
Open
1 task

Pylint errors in Python 2 /Python 3 compatibility blocks #306

JamesParrott opened this issue Sep 19, 2024 · 0 comments

Comments

@JamesParrott
Copy link
Collaborator

JamesParrott commented Sep 19, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant