diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-03-02 11:07:47 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-03-02 11:07:47 -0500 |
commit | f9e1f2bda930054eed3115e19e9f3f7bfc83c1b6 (patch) | |
tree | 8b021183fe8aa457ab0c74d5d409525e4f8b543e /Lib/inspect.py | |
parent | 1bd030788d1092ba5d5d8b4e2fd75346ded69b3b (diff) | |
download | cpython-git-f9e1f2bda930054eed3115e19e9f3f7bfc83c1b6.tar.gz |
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
Patch by Frederick Wagner (issue #26347)
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index b65bec7adf..e830eb64ca 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -2591,8 +2591,6 @@ class BoundArguments: empty dict. """ arguments = self.arguments - if not arguments: - return new_arguments = [] for name, param in self._signature.parameters.items(): try: |