nfv/nfv/nfv-vim/nfv_vim/api
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
..
acl Add support for containerized keystone to VIM 2018-10-03 08:29:08 -05:00
controllers Update httplib to use python3 compatible code 2018-11-21 15:55:57 -06:00
openstack Update urllib2 to be python3 compatable. 2018-11-23 08:54:24 -06:00
__init__.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
_application.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
_config.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
_hooks.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
_link.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00