Skip to content

Commit

Permalink
Remove some no longer used Python 2-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
jstasiak committed Sep 22, 2020
1 parent 34479c4 commit d0a6052
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions injector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,9 @@ def __str__(self) -> str:
return self.args[0]

instance, method, args, kwargs, original_error, stack = self.args
if hasattr(method, 'im_class'):
instance = method.__self__
method_name = method.__func__.__name__
else:
method_name = method.__name__

cls = instance.__class__.__name__ if instance is not None else ''

full_method = '.'.join((cls, method_name)).strip('.')
full_method = '.'.join((cls, method.__name__)).strip('.')

parameters = ', '.join(
itertools.chain(
Expand Down

0 comments on commit d0a6052

Please sign in to comment.