inspect: Fix BoundArguments.apply_defaults to handle empty arguments

Patch by Frederick Wagner (issue #26347)
This commit is contained in:
Yury Selivanov 2016-03-02 11:07:47 -05:00
parent 1bd030788d
commit f9e1f2bda9
2 changed files with 7 additions and 2 deletions

View file

@ -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: