Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _update_argspec(self):
original = self.__dict__.get('original')
if original:
try:
if sys.version_info < (3, 0):
self.argspec = FullArgSpec(inspect.getargspec(original))
else:
self.argspec = FullArgSpec(inspect.getfullargspec(original))
except TypeError:
# built-in function: fall back to stupid processing and hope the
# builtins don't change signature
pass
def _update_argspec(self):
original = self.__dict__.get('original')
if original:
try:
if sys.version_info < (3, 0):
self.argspec = FullArgSpec(inspect.getargspec(original))
else:
self.argspec = FullArgSpec(inspect.getfullargspec(original))
except TypeError:
# built-in function: fall back to stupid processing and hope the
# builtins don't change signature
pass