Skip to content

Commit

Permalink
Fix Py2 qualname
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed May 23, 2021
1 parent f37fc13 commit eb091a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/attr/_make.py
Expand Up @@ -1971,11 +1971,7 @@ def __repr__(self):
return "..."
real_cls = self.__class__
if ns is None:
qualname = getattr(real_cls, "__qualname__", None)
if qualname is not None:
class_name = qualname.rsplit(">.", 1)[-1]
else:
class_name = real_cls.__name__
class_name = real_cls.__name__
else:
class_name = ns + "." + real_cls.__name__

Expand Down

0 comments on commit eb091a3

Please sign in to comment.