Skip to content

Commit

Permalink
Merging to release-4-lts: [TT-10329] fix getargspec removal from pyth…
Browse files Browse the repository at this point in the history
…on stdlib in 3.11 (deprecated since python 3.0) (#5664)

[TT-10329] fix getargspec removal from python stdlib in 3.11 (deprecated since python 3.0) (#5664)

https://tyktech.atlassian.net/browse/TT-10329

---------

Co-authored-by: Tit Petric <[email protected]>
  • Loading branch information
buger and Tit Petric authored Oct 25, 2023
1 parent c6ff6cc commit 1e2370a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 1e2370a

Please sign in to comment.