From c07e9cf63df9863d2583ba40cfa126292b068e46 Mon Sep 17 00:00:00 2001 From: Kui Shi Date: Tue, 15 Oct 2013 15:50:32 +0800 Subject: [PATCH] Replace urllib.quote with urlutils.quote quote is defined in urlutils for Python2&3 compatability. Partial implements: blueprint py33-support Change-Id: I81e667c76544b6bafd81d51d788158f6a062a90c --- troveclient/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/troveclient/common.py b/troveclient/common.py index 4cba2892..344d380e 100644 --- a/troveclient/common.py +++ b/troveclient/common.py @@ -22,7 +22,7 @@ import sys from troveclient import client from troveclient import exceptions -from urllib import quote +from troveclient.openstack.common.py3kcompat import urlutils def check_for_exceptions(resp, body): @@ -45,9 +45,9 @@ def limit_url(url, limit=None, marker=None): def quote_user_host(user, host): quoted = '' if host: - quoted = quote("%s@%s" % (user, host)) + quoted = urlutils.quote("%s@%s" % (user, host)) else: - quoted = quote("%s" % user) + quoted = urlutils.quote("%s" % user) return quoted.replace('.', '%2e')