Work around RecursionError in EntryPoint.__repr__ in pypy

https://gitlab.com/python-devs/importlib_metadata/issues/97
This commit is contained in:
Anthony Sottile 2019-11-29 10:17:29 -08:00
parent 5d7eeaa9b3
commit 6b764d0ec7

View file

@ -41,7 +41,7 @@ class Plugin(object):
def __repr__(self): # type: () -> str
"""Provide an easy to read description of the current plugin."""
return 'Plugin(name="{0}", entry_point="{1}")'.format(
self.name, self.entry_point
self.name, self.entry_point.value
)
def to_dictionary(self):