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 9cc2f5c commit 31c7db7Copy full SHA for 31c7db7
pkg_resources/__init__.py
@@ -304,7 +304,7 @@ class ResolutionError(Exception):
304
"""Abstract base for dependency resolution errors"""
305
306
def __repr__(self) -> str:
307
- return self.__class__.__name__ + repr(self.args)
+ return f"{self.__class__.__name__}{self.args!r}"
308
309
310
class VersionConflict(ResolutionError):
@@ -3330,7 +3330,7 @@ def has_version(self) -> bool:
3330
try:
3331
self.version
3332
except ValueError:
3333
- issue_warning("Unbuilt egg for " + repr(self))
+ issue_warning(f"Unbuilt egg for {self!r}")
3334
return False
3335
except SystemError:
3336
# TODO: remove this except clause when python/cpython#103632 is fixed.
0 commit comments