diff --git a/.zuul.yaml b/.zuul.yaml index 461325d..2c16442 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -3,7 +3,7 @@ - check-requirements - lib-forward-testing-python3 - openstack-lower-constraints-jobs - - openstack-python3-train-jobs + - openstack-python3-victoria-jobs - periodic-stable-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 diff --git a/debtcollector/updating.py b/debtcollector/updating.py index 7ad3e20..af071bf 100644 --- a/debtcollector/updating.py +++ b/debtcollector/updating.py @@ -14,19 +14,9 @@ # License for the specific language governing permissions and limitations # under the License. -import six import wrapt -if six.PY3: - import inspect - Parameter = inspect.Parameter - Signature = inspect.Signature - get_signature = inspect.signature -else: - # Provide an equivalent but use funcsigs instead... - import funcsigs - Parameter = funcsigs.Parameter - Signature = funcsigs.Signature - get_signature = funcsigs.signature + +from inspect import signature from debtcollector import _utils @@ -48,8 +38,8 @@ def updated_kwarg_default_value(name, old_value, new_value, message=None, prefix, postfix=postfix, message=message, version=version) def decorator(f): - sig = get_signature(f) - varnames = list(six.iterkeys(sig.parameters)) + sig = signature(f) + varnames = list(sig.parameters.keys()) @wrapt.decorator def wrapper(wrapped, instance, args, kwargs):