diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-17 17:22:01 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-18 22:31:01 +0900 |
commit | 69125bfd07398245480e783415352a2ed0c5ee92 (patch) | |
tree | 0c783c5e14ecb6dbf9aeb2960df3e06f3dc1c7c6 /functionaltests/utils.py | |
parent | c6ce0af02863439e5a4834fede07fb4bf855e631 (diff) | |
download | python-barbicanclient-69125bfd07398245480e783415352a2ed0c5ee92.tar.gz |
Remove six
Python 2 is no longer supported, so we no longer need the six library.
This change removes usage of the library as well as reference to it
(and Python 2) from the documentation.
Change-Id: I6328b11dcad54f70f64ecff53eb60708e34351cf
Diffstat (limited to 'functionaltests/utils.py')
-rw-r--r-- | functionaltests/utils.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/functionaltests/utils.py b/functionaltests/utils.py index 367dee0..5c5b51a 100644 --- a/functionaltests/utils.py +++ b/functionaltests/utils.py @@ -19,8 +19,7 @@ import time import types import oslotest.base as oslotest -import six -import six.moves.urllib.parse as urlparse +import urllib.parse as urlparse class BaseTestCase(oslotest.BaseTestCase): @@ -43,10 +42,10 @@ def construct_new_test_function(original_func, name, build_params): :return: A new function object """ new_func = types.FunctionType( - six.get_function_code(original_func), - six.get_function_globals(original_func), + original_func.__code__, + original_func.__globals__, name=name, - argdefs=six.get_function_defaults(original_func) + argdefs=original_func.__defaults__ ) # Support either an arg list or kwarg dict for our data |