Merge "Replace urllib.quote() with six.moves.urllib.parse.quote()"

This commit is contained in:
Jenkins 2016-08-26 14:02:56 +00:00 committed by Gerrit Code Review
commit d59f66b00c

View File

@ -19,7 +19,7 @@
# under the License.
import datetime
import urllib
from six.moves import urllib
import pecan
from pecan import rest
@ -124,7 +124,7 @@ class ResourcesController(rest.RestController):
# In case we have special character in resource id, for example, swift
# can generate samples with resource id like
# 29f809d9-88bb-4c40-b1ba-a77a1fcf8ceb/glance
resource_id = urllib.unquote(resource_id)
resource_id = urllib.parse.unquote(resource_id)
authorized_project = rbac.get_limited_to_project(pecan.request.headers)
resources = list(pecan.request.storage_conn.get_resources(