nfv/nfv
Al Bailey 181d7b4832 Update urllib2 to be python3 compatable.
This change has no code impact on python2
There are multiple six.moves modules depending on which
urllib2 component was being used.
    Classes were verified by print(class_name)
    Methods were verified using help(method_name)

Error codes:
urllib2.URLError -> from six.moves.urllib.error import URLError
(verified as the same)
urllib2.HTTPError from six.moves.urllib.error import HTTPError
(verified as the same)

Functionality:
old: urllib2.HTTPHandler
new: from six.moves.urllib.request import HTTPHandler
verification: print(HTTPHandler)
result:  urllib2.HTTPHandler

old: urllib2.Request
new: from six.moves.urllib.request import Request
verification: print(Request)
result:  urllib2.Request

old: urllib2.build_opener
new: from six.moves.urllib.request import build_opener
verification: help(build_opener)
result:  Help on function build_opener in module urllib2:

old: urllib2.install_opener
new: from six.moves.urllib.request import install_opener
verification: help(install_opener)
result: Help on function install_opener in module urllib2:

Story: 2004241
Task: 28069
Change-Id: Iec3a9e7b20c9d186313dfa4e152064283236603a
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-11-23 08:54:24 -06:00
..
centos Merge "replace hardcoded system paths by variables in stx config files" 2018-11-06 19:42:49 +00:00
nfv-client Update urllib2 to be python3 compatable. 2018-11-23 08:54:24 -06:00
nfv-common Update Queue to use python3 compatible code 2018-11-21 15:58:51 -06:00
nfv-debug-tools/histogram_analysis Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
nfv-docs Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
nfv-plugins Update urllib2 to be python3 compatable. 2018-11-23 08:54:24 -06:00
nfv-tests Prevent NFV unit tests from randomly failing 2018-11-21 14:06:14 -06:00
nfv-tools Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
nfv-vim Update urllib2 to be python3 compatable. 2018-11-23 08:54:24 -06: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 Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
tox.ini Lock down flake8 version 2018-10-24 11:47:10 -05:00