Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions distutils/command/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def checking_metadata(self) -> bool:
(
'keep-temp',
'k',
"keep the distribution tree around after creating " + "archive file(s)",
"keep the distribution tree around after creating archive file(s)",
),
(
'dist-dir=',
Expand Down Expand Up @@ -206,8 +206,7 @@ def get_file_list(self) -> None:

if not template_exists:
self.warn(
("manifest template '%s' does not exist " + "(using default file list)")
% self.template
f"manifest template '{self.template}' does not exist (using default file list)"
)
self.filelist.findall()

Expand Down
2 changes: 1 addition & 1 deletion distutils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def run_commands(dist):
if DEBUG:
raise
else:
raise SystemExit("error: " + str(msg))
raise SystemExit(f"error: {msg}")

return dist

Expand Down
2 changes: 1 addition & 1 deletion distutils/versionpredicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, versionPredicateStr):

def __str__(self):
if self.pred:
seq = [cond + " " + str(ver) for cond, ver in self.pred]
seq = [f"{cond} {ver}" for cond, ver in self.pred]
return self.name + " (" + ", ".join(seq) + ")"
else:
return self.name
Expand Down
Loading