Skip to content

Commit 5cfbb08

Browse files
committed
Fix __repr__ on pypy3 as well
1 parent 031c7f0 commit 5cfbb08

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

importlib_metadata/_compat.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,10 @@ def py2_message_from_string(text): # nocoverpy3
117117

118118
class PyPy_repr:
119119
"""
120-
Override repr for EntryPoint objects on PyPy2 to avoid __iter__ access.
121-
Ref #97.
120+
Override repr for EntryPoint objects on PyPy to avoid __iter__ access.
121+
Ref #97, #102.
122122
"""
123-
affected = (
124-
hasattr(sys, 'pypy_version_info') and
125-
sys.version_info < (3,)
126-
)
123+
affected = hasattr(sys, 'pypy_version_info')
127124

128125
def __compat_repr__(self): # pragma: nocover
129126
def make_param(name):

0 commit comments

Comments
 (0)