nfv/nfv
SidneyAn 730ef6eeaf Fix urllib/unicode related issues for Python 2/3
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: https://github.com/PyCQA/pylint/issues/2180

Story: 2003427
Task: 24605
Task: 24608

Change-Id: I098ba8093dbf08dd91acaf403291ebb469195558
Signed-off-by: SidneyAn <ran1.an@intel.com>
2019-01-15 19:57:15 +08:00
..
centos Merge "replace hardcoded system paths by variables in stx config files" 2018-11-06 19:42:49 +00:00
nfv-client Enable python3 unit testing in zuul for nfv 2019-01-09 09:38:21 -06:00
nfv-common Fix dict related issues for Python 2/3 2019-01-09 18:21:31 +08:00
nfv-debug-tools/histogram_analysis Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
nfv-docs Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
nfv-plugins Fix urllib/unicode related issues for Python 2/3 2019-01-15 19:57:15 +08:00
nfv-tests Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
nfv-tools Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
nfv-vim Fix urllib/unicode related issues for Python 2/3 2019-01-15 19:57:15 +08:00
.coveragerc Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
.gitignore Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
.stestr.conf Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:51 -07:00
pylint.rc Fix relative import warnings from pylint 2018-12-20 16:54:35 -06:00
test-requirements.txt Fix relative import warnings from pylint 2018-12-20 16:54:35 -06:00
tox.ini Fix urllib/unicode related issues for Python 2/3 2019-01-15 19:57:15 +08:00