summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index 6af3eb15..b0ef6876 100644
--- a/igor.py
+++ b/igor.py
@@ -351,7 +351,9 @@ def analyze_args(function):
getargspec = inspect.getfullargspec
except AttributeError:
getargspec = inspect.getargspec
- argspec = getargspec(function)
+ with ignore_warnings():
+ # DeprecationWarning: Use inspect.signature() instead of inspect.getfullargspec()
+ argspec = getargspec(function)
return bool(argspec[1]), len(argspec[0])