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
Relative import 'six.moves.urllib.parse', should be 'six.moves' (relative-import) #2180
Labels
Comments
PCManticore
added
Bug 🪲
python past end of life
This affect a python version we do not support anymore
labels
Jul 3, 2018
Thanks for the report! |
openstack-gerrit
pushed a commit
to openstack-archive/stx-nfv
that referenced
this issue
Jan 15, 2019
replace unicode by six.text_type replace urlparse by six.moves.urllib.parse remove the ignore for F821 from the flake8 config PS: as there is a bug of pylint 1.9, six.moves.urllib.parse should be import as follows: e.g. from doc of module six: from six.moves.urllib.parse import urlparse urlparse(endpoint).path here: from six.moves import urllib urllib.parse.urlparse(endpoint).path pylint bug: pylint-dev/pylint#2180 Story: 2003427 Task: 24605 Task: 24608 Change-Id: I098ba8093dbf08dd91acaf403291ebb469195558 Signed-off-by: SidneyAn <ran1.an@intel.com>
I think this is fixed in the current pylint |
Yup, I cannot reproduce any more with $ pylint --version |
Still experiencing this issue with pylint 1.9.5.
|
We're not supporting python 2.7 anymore, and we will not make pylint 1.9 evolves. You need to use python3 to have the latest features. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Steps to reproduce
six
andpylint
wtf.py
with one line of code:pylint wtf.py
Current behavior
Expected behavior
No relative-import error
pylint --version output
The text was updated successfully, but these errors were encountered: