Skip to content

Commit 64e50f3

Browse files
author
Matthias Koeppe
committed
sage --fixdistributions: Put filename first in all messages
1 parent 3d968ae commit 64e50f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sage/misc/package_dir.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def update_distribution(src_file, distribution, *, verbose=False):
214214
src_lines[i] = line
215215
any_change = True
216216
if verbose:
217-
print(f"Changed 'sage_setup: " f"distribution' in {src_file!r} "
217+
print(f"{src_file}: changed 'sage_setup: " f"distribution' "
218218
f"from {old_distribution!r} to {distribution!r}")
219219
any_found = True
220220
if not any_found:
@@ -223,8 +223,8 @@ def update_distribution(src_file, distribution, *, verbose=False):
223223
src_lines.insert(0, f'# {directive}\n')
224224
any_change = True
225225
if verbose:
226-
print("Added 'sage_setup: " f"distribution = {distribution}' "
227-
f"directive in {src_file!r}")
226+
print(f"{src_file}: Added 'sage_setup: "
227+
f"distribution = {distribution}' directive")
228228
if not any_change:
229229
return
230230
with open(src_file, 'w') as f:

0 commit comments

Comments
 (0)