summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-04 02:01:59 +0000
committerGerrit Code Review <review@openstack.org>2016-01-04 02:01:59 +0000
commita63ba0d5874787ef1a483f503595529f9770396a (patch)
tree4070210fdecadf94713fe7fbc2e5bdf625138dda
parent62d0411064c87f5b9ec65bb2e7b9b3c2e3e49b47 (diff)
parented0f122915890f1ecbc69a2a2942877138567b3c (diff)
downloadtempest-lib-a63ba0d5874787ef1a483f503595529f9770396a.tar.gz
Merge "Keep py3.X compatibility for urllib"0.13.0
-rwxr-xr-xtempest_lib/cmd/check_uuid.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tempest_lib/cmd/check_uuid.py b/tempest_lib/cmd/check_uuid.py
index 30628cc..3adeecd 100755
--- a/tempest_lib/cmd/check_uuid.py
+++ b/tempest_lib/cmd/check_uuid.py
@@ -21,9 +21,10 @@ import inspect
import os
import sys
import unittest
-import urllib
import uuid
+import six.moves.urllib.parse as urlparse
+
DECORATOR_MODULE = 'test'
DECORATOR_NAME = 'idempotent_id'
DECORATOR_IMPORT = 'tempest.%s' % DECORATOR_MODULE
@@ -49,11 +50,11 @@ class SourcePatcher(object):
@staticmethod
def _quote(s):
- return urllib.quote(s)
+ return urlparse.quote(s)
@staticmethod
def _unquote(s):
- return urllib.unquote(s)
+ return urlparse.unquote(s)
def add_patch(self, filename, patch, line_no):
"""Add lazy patch"""