Replace urllib.quote with urlutils.quote
quote is defined in urlutils for Python2&3 compatability. Partial implements: blueprint py33-support Change-Id: I81e667c76544b6bafd81d51d788158f6a062a90c
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user