Skip to content

Commit

Permalink
satisfy ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Aug 5, 2023
1 parent c2571d2 commit 9aba3c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion pipenv/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions pipenv/utils/requirementslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9aba3c3

Please sign in to comment.