Skip to content

Commit

Permalink
Use f-string for the 'Reloaded modules' message
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Nov 21, 2024
1 parent 83b61ac commit 20f1816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder_kernels/customize/umr.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def run(self):
color = colors["dark"]
if self._shell:
color = colors[self._shell.get_spyder_theme()]
print("\x1b[4;%sm%s\x1b[24m%s\x1b[0m"
% (color, "Reloaded modules", ": "+", ".join(modnames)))
content = ": "+", ".join(modnames)
print(f"\x1b[4;{color}mReloaded modules\x1b[24m{content}\x1b[0m")

return modnames_to_reload

0 comments on commit 20f1816

Please sign in to comment.