Fix "F821 undefined name 'unicode' error when run tox pep8
This patch fix the error when running tox pep8 on the master branch of python-tackerclient: ./tackerclient/tacker/v1_0/vnfm/vnf.py:166:62: F821 undefined name 'unicode' if isinstance(config, str) or isinstance(config, unicode): ^ ERROR: InvocationError: '/home/projects/python-tackerclient/.tox/pep8/bin/flake8' Change-Id: I366923e2759ffd85bb4594b82b55472bbdb7f783 Closes-bug: #1751441
This commit is contained in:
3
tox.ini
3
tox.ini
@@ -37,3 +37,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
ignore = E125
|
||||
show-source = true
|
||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
||||
# F821 undefined name 'unicode'
|
||||
# if isinstance(config, str) or isinstance(config, unicode):
|
||||
builtins = unicode
|
||||
|
Reference in New Issue
Block a user