Update urllib/httplib/cStringIO to use six.moves
partial blueprint heat-python34-support
Change-Id: I00a7064560a95a33dcb1e621961765822d4e94d4
diff --git a/common/test.py b/common/test.py
index a7aa039..ed1e254 100644
--- a/common/test.py
+++ b/common/test.py
@@ -15,13 +15,13 @@
import re
import subprocess
import time
-import urllib
import fixtures
from heatclient import exc as heat_exceptions
from oslo_log import log as logging
from oslo_utils import timeutils
import six
+from six.moves import urllib
import testscenarios
import testtools
@@ -111,7 +111,7 @@
def check_connectivity(self, check_ip):
def try_connect(ip):
try:
- urllib.urlopen('http://%s/' % ip)
+ urllib.request.urlopen('http://%s/' % ip)
return True
except IOError:
return False