diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-01-04 02:01:59 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-01-04 02:01:59 +0000 |
commit | a63ba0d5874787ef1a483f503595529f9770396a (patch) | |
tree | 4070210fdecadf94713fe7fbc2e5bdf625138dda | |
parent | 62d0411064c87f5b9ec65bb2e7b9b3c2e3e49b47 (diff) | |
parent | ed0f122915890f1ecbc69a2a2942877138567b3c (diff) | |
download | tempest-lib-a63ba0d5874787ef1a483f503595529f9770396a.tar.gz |
Merge "Keep py3.X compatibility for urllib"0.13.0
-rwxr-xr-x | tempest_lib/cmd/check_uuid.py | 7 |
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""" |