diff --git a/pipenv/utils/exceptions.py b/pipenv/utils/exceptions.py index bc6a3ee5b7..121399da17 100644 --- a/pipenv/utils/exceptions.py +++ b/pipenv/utils/exceptions.py @@ -22,7 +22,6 @@ def show(self, param): class FileCorruptException(OSError): def __init__(self, path, *args, **kwargs): - path = path backup_path = kwargs.pop("backup_path", None) if not backup_path and args: args = reversed(args) diff --git a/pipenv/utils/requirementslib.py b/pipenv/utils/requirementslib.py index d5b30c5d2c..3cb3e6f172 100644 --- a/pipenv/utils/requirementslib.py +++ b/pipenv/utils/requirementslib.py @@ -334,11 +334,7 @@ def __repr__(self): return f"{cn}({self.exc!r}, {self.seg!r}, {self.path!r})" def __str__(self): - return "could not access {!r} from path {!r}, got error: {!r}".format( - self.seg, - self.path, - self.exc, - ) + return f"could not access {self.seg} from path {self.path}, got error: {self.exc}" def get_path(root, path, default=_UNSET):