Skip to content

Commit

Permalink
We DO run under 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Mar 19, 2022
1 parent b093bc7 commit 2047cfa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/attr/_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,11 +1943,8 @@ def __repr__(self):
real_cls = self.__class__
if ns is None:
qualname = getattr(real_cls, "__qualname__", None)
if qualname is not None: # pragma: no cover
# This case only happens on Python 3.5 and 3.6. We exclude
# it from coverage, because we don't want to slow down our
# test suite by running them under coverage too for this
# one line.
if qualname is not None:
# This case only happens on Python 3.5 and 3.6.
class_name = qualname.rsplit(">.", 1)[-1]
else:
class_name = real_cls.__name__
Expand Down

0 comments on commit 2047cfa

Please sign in to comment.