]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Use six.moves.urllib.parse instead of urlparse
authorHe Yongli <yongli.he@intel.com>
Wed, 12 Feb 2014 04:44:45 +0000 (12:44 +0800)
committerHe Yongli <yongli.he@intel.com>
Thu, 13 Feb 2014 02:19:01 +0000 (10:19 +0800)
To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.

Closes-Bug: #1279611
Change-Id: I712035926f449e1bc5ab1fe85927369b826cb9cc

neutron/agent/metadata/agent.py
neutron/agent/metadata/namespace_proxy.py
neutron/api/v2/router.py
neutron/plugins/nicira/api_client/request.py
neutron/tests/unit/nicira/fake_nvpapiclient.py
neutron/tests/unit/test_api_v2.py

index ce275163067ebf8c646bdb1ab1ee30f816c9f311..6209ebee82e7279824d46cfba581d9e570dd820c 100644 (file)
@@ -20,12 +20,12 @@ import hashlib
 import hmac
 import os
 import socket
-import urlparse
 
 import eventlet
 import httplib2
 from neutronclient.v2_0 import client
 from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
 import webob
 
 from neutron.agent.common import config as agent_conf
index 9b8bcdddbbea97abac3e24d7700413e932d21eb9..c6addb8fee005c693084137a3e404c49c76f6736 100644 (file)
 
 import httplib
 import socket
-import urlparse
+
 
 import eventlet
 import httplib2
 from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
 import webob
 
 from neutron.agent.linux import daemon
index 1a4196c5038c1f5a7416bd060268433511f8e3ce..f1b5787d9dbde3c5892a4b3fe96b487db4e57875 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import urlparse
-
 from oslo.config import cfg
 import routes as routes_mapper
+import six.moves.urllib.parse as urlparse
 import webob
 import webob.dec
 import webob.exc
index c54ed1bdfe56c7b804297d645b7b0682c1c8ba5a..beaf1b4d9153aaff47c182f225265c62d55e09c5 100644 (file)
@@ -24,9 +24,9 @@ import copy
 import httplib
 import logging
 import time
-import urlparse
 
 import six
+import six.moves.urllib.parse as urlparse
 
 from neutron.openstack.common import excutils
 from neutron.plugins.nicira.api_client.common import (
index 577be6c51fd71237547ef05af46c045a75063409..a367b246bd43cb004899be2a3a75a35720bc5635 100644 (file)
@@ -15,7 +15,8 @@
 #    under the License.
 
 import json
-import urlparse
+
+import six.moves.urllib.parse as urlparse
 
 from neutron.openstack.common import log as logging
 from neutron.openstack.common import uuidutils
index 61e3eb371a7c6c93b0da620ebc42956fe74dbea9..1539c52b776138578dea7391eec1ff15e90c9e68 100644 (file)
 #    under the License.
 
 import os
-import urlparse
 
 import mock
 from oslo.config import cfg
+import six.moves.urllib.parse as urlparse
 import webob
 from webob import exc
 import webtest