Py3: Use urlopen from six.moves.urllib.request

Namespaces within the urllib2 package have
changed between python2x and python3x.

Closes-bug: #1810610
Change-Id: I2a044ba76970393c587d6bc8d07280a7727bbe21
This commit is contained in:
Goutham Pacha Ravi 2019-01-04 12:26:26 -08:00 committed by Tom Barron
parent 89262f6721
commit 8e9a39abbf
1 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,7 @@
from oslo_log import log
import six
from six.moves.urllib.request import urlopen
from manila_tempest_tests.common import constants
from manila_tempest_tests.common import remote_client
@ -28,7 +29,6 @@ from tempest.lib.common.utils import test_utils
from tempest.lib import exceptions
from tempfile import mkstemp
from urllib2 import urlopen
CONF = config.CONF
LOG = log.getLogger(__name__)