Skip to content

Commit

Permalink
eliminate method variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Aug 1, 2023
1 parent afea7b9 commit 18ec28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,9 @@ def __get__(self, obj, cls=None):
else:
return _method

dp = self.dispatcher.dispatch
def _method(*args, **kwargs):
method = self.dispatcher.dispatch(args[0].__class__)
return method.__get__(obj, cls)(*args, **kwargs)
return dp(args[0].__class__).__get__(obj, cls)(*args, **kwargs)

_method.__isabstractmethod__ = self.__isabstractmethod__
_method.register = self.register
Expand Down

0 comments on commit 18ec28a

Please sign in to comment.