From a6b721690c8eeb6796664f314a77fda3e4476e6d Mon Sep 17 00:00:00 2001 From: Trinh Nguyen Date: Sat, 24 Feb 2018 20:14:26 +0900 Subject: [PATCH] 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 9722f0b0..add34820 100644 --- a/tox.ini +++ b/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