I have a python module with python 2 fallback reserve installed with try / catch.
try:
from urllib.parse import urlencode
except ImportError:
from urlib import urlencode
When I pylint the file, I do not get the name 'urlencode' in the module 'urllib' and similar errors. In any case, to indicate python 2 linting for the block, disable all drag and drop for the block, or am I stuck in my hand, wriggling all the errors?
source
share