From 9aba3c376fb94ab501bf84c97eba2d776b5c3155 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sat, 5 Aug 2023 18:26:07 -0400 Subject: [PATCH] satisfy ruff --- pipenv/utils/exceptions.py | 1 - pipenv/utils/requirementslib.py | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) 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):