[elbe-devel] [PATCH v2 01/75] add: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:13:43 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/commands/add.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/commands/add.py b/elbepack/commands/add.py
index 2d2f446a9..92533162b 100644
--- a/elbepack/commands/add.py
+++ b/elbepack/commands/add.py
@@ -26,20 +26,20 @@ def run_command(argv):
try:
xml = ElbeXML(xmlfile)
except ValidationError as E:
- print("Error while reading xml file %s: %s" % (xmlfile, E))
+ print(f"Error while reading xml file {xmlfile}: {E}")
sys.exit(20)
for pkg in pkg_lst:
try:
xml.add_target_package(pkg)
except ValueError as E:
- print("Error while adding package %s to %s: %s" % (pkg, xmlfile, E))
+ print(f"Error while adding package {pkg} to {xmlfile}: {E}")
sys.exit(20)
try:
xml.xml.write(xmlfile)
sys.exit(0)
except PermissionError as E:
- print("Unable to truncate file %s: %s" % (xmlfile, E))
+ print(f"Unable to truncate file {xmlfile}: {E}")
sys.exit(20)
--
2.38.1
More information about the elbe-devel
mailing list