Skip to content

Commit

Permalink
Fix __repr__ on pypy3 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Dec 4, 2019
1 parent 031c7f0 commit 5cfbb08
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions importlib_metadata/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,10 @@ def py2_message_from_string(text): # nocoverpy3

class PyPy_repr:
"""
Override repr for EntryPoint objects on PyPy2 to avoid __iter__ access.
Ref #97.
Override repr for EntryPoint objects on PyPy to avoid __iter__ access.
Ref #97, #102.
"""
affected = (
hasattr(sys, 'pypy_version_info') and
sys.version_info < (3,)
)
affected = hasattr(sys, 'pypy_version_info')

def __compat_repr__(self): # pragma: nocover
def make_param(name):
Expand Down

0 comments on commit 5cfbb08

Please sign in to comment.