We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3250c25 commit ace1a2cCopy full SHA for ace1a2c
pkg_resources/__init__.py
@@ -299,7 +299,7 @@ class ResolutionError(Exception):
299
"""Abstract base for dependency resolution errors"""
300
301
def __repr__(self) -> str:
302
- return self.__class__.__name__ + repr(self.args)
+ return f"{self.__class__.__name__}{self.args!r}"
303
304
305
class VersionConflict(ResolutionError):
@@ -3325,7 +3325,7 @@ def has_version(self) -> bool:
3325
try:
3326
self.version
3327
except ValueError:
3328
- issue_warning("Unbuilt egg for " + repr(self))
+ issue_warning(f"Unbuilt egg for {self!r}")
3329
return False
3330
except SystemError:
3331
# TODO: remove this except clause when python/cpython#103632 is fixed.
0 commit comments