Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging to release-4-lts: [TT-10329] fix getargspec removal from python stdlib in 3.11 (deprecated since python 3.0) (#5664) #5673

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions coprocess/python/tyk/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from inspect import getargspec
from inspect import getfullargspec


class HandlerDecorator(object):
Expand All @@ -14,7 +14,7 @@ class Hook(object):
def __init__(self, f):
self.name = f.__name__
self.f = f
self.arg_count = len(getargspec(f)[0])
self.arg_count = len(getfullargspec(f)[0])

def __call__(self, *args, **kwargs):
if self.arg_count == 3:
Expand Down
Loading