From 7c113c4f7e3dd2a192a79af53be23312455e6e67 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Thu, 7 Dec 2023 16:36:19 +0100 Subject: chore: Fix inline python format-strings --- contrib/non-profit-audit-reports/csv2ods.py | 2 +- test/LedgerHarness.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/non-profit-audit-reports/csv2ods.py b/contrib/non-profit-audit-reports/csv2ods.py index d2eda740..84a68e33 100755 --- a/contrib/non-profit-audit-reports/csv2ods.py +++ b/contrib/non-profit-audit-reports/csv2ods.py @@ -169,7 +169,7 @@ def csv2ods(csvname, odsname, encoding='', singleFileDirectory=None, knownChecks print(f'WARNING: link {val} DOES NOT EXIST at {linkpath}') if verbose: if os.path.exists(linkpath): - print('relative link {val} EXISTS at {linkpath}') + print(f'relative link {val} EXISTS at {linkpath}') else: if val == "pagebreak": doc.sheets[doc.sheet_index].set_sheet_config(('row', row), style_pagebreak) diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py index e2c96894..95d0fe45 100755 --- a/test/LedgerHarness.py +++ b/test/LedgerHarness.py @@ -55,10 +55,10 @@ class LedgerHarness: def __init__(self, ledger, sourcepath, verify=False, gmalloc=False, python=False): if not ledger.is_file(): - print("Cannot find ledger at '{ledger}'", file=sys.stderr) + print(f"Cannot find ledger at '{ledger}'", file=sys.stderr) sys.exit(1) if not sourcepath.is_dir(): - print("Cannot find source path at '{sourcepath}'", file=sys.stderr) + print(f"Cannot find source path at '{sourcepath}'", file=sys.stderr) sys.exit(1) self.ledger = ledger.resolve() -- cgit v1.2.3