libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [07/52] [abbrv] libcloud git commit: converted to using libcloud.utils.urlquote and libcloud.utils.urlunquote
Date Mon, 06 Apr 2015 10:02:06 GMT
converted to using libcloud.utils.urlquote and libcloud.utils.urlunquote


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/1f75d757
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/1f75d757
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/1f75d757

Branch: refs/heads/trunk
Commit: 1f75d757195f3ab05048b3a3cb811e9518ed6270
Parents: ff3000f
Author: Matt Baldwin <baldwinmathew@gmail.com>
Authored: Tue Jul 1 11:35:49 2014 -0700
Committer: Michael Bennett <michael@securitycompass.com>
Committed: Wed Nov 19 13:03:14 2014 -0500

----------------------------------------------------------------------
 libcloud/compute/drivers/azure.py | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/1f75d757/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py b/libcloud/compute/drivers/azure.py
index 6154fb3..8b61c8e 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -15,7 +15,6 @@
 """Azure Compute driver
 
 """
-import httplib
 import re
 import time
 import collections
@@ -24,6 +23,7 @@ import sys
 import copy
 import base64
 
+from libcloud.utils.py3 import httplib
 from libcloud.common.azure import AzureServiceManagementConnection
 from libcloud.compute.providers import Provider
 from libcloud.compute.base import Node, NodeDriver, NodeLocation, NodeSize
@@ -36,14 +36,8 @@ from xml.dom import minidom
 from xml.sax.saxutils import escape as xml_escape
 from httplib import (HTTPSConnection)
 
-if sys.version_info < (3,):
-    from urllib2 import quote as url_quote
-    from urllib2 import unquote as url_unquote
-    _strtype = basestring
-else:
-    from urllib.parse import quote as url_quote
-    from urllib.parse import unquote as url_unquote
-    _strtype = str
+from libcloud.utils.py3 import urlquote
+from libcloud.utils.py3 import urlunquote
 
 if sys.version_info < (3,):
     _unicode_type = unicode


Mime
View raw message