Skip to content

Commit 27493b3

Browse files
committed
restore previous _unwrap_partial
1 parent 79e9cff commit 27493b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def __isabstractmethod__(self):
535535
# Helper functions
536536

537537
def _unwrap_partial(func):
538-
if isinstance(func, partial):
538+
while isinstance(func, partial):
539539
func = func.func
540540
return func
541541

0 commit comments

Comments
 (0)