diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-09 17:37:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-09 17:37:15 -0400 |
commit | c4f538a5e165d67146c0c05154ed35d735b85015 (patch) | |
tree | c9341558f8a82012e8f7983bc58b0d453efc9a43 /igor.py | |
parent | aa2d4e565ebcbd23ffb0ffe288c757d00ed16fa7 (diff) | |
download | python-coveragepy-git-c4f538a5e165d67146c0c05154ed35d735b85015.tar.gz |
Silence a DeprecationWarning
"DeprecationWarning: Use inspect.signature() instead of inspect.getfullargspec()"
This started appearing with Python 3.8a4.
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]) |