summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-07 16:36:19 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-12-08 09:31:23 +0800
commit7c113c4f7e3dd2a192a79af53be23312455e6e67 (patch)
tree3c78c5d54a6688fe55861821f1ac82b3c7ff1654
parent3cfad2570d7fe8aa5d88de3797797d695d4fbe06 (diff)
downloadfork-ledger-7c113c4f7e3dd2a192a79af53be23312455e6e67.tar.gz
fork-ledger-7c113c4f7e3dd2a192a79af53be23312455e6e67.tar.bz2
fork-ledger-7c113c4f7e3dd2a192a79af53be23312455e6e67.zip
chore: Fix inline python format-strings
-rwxr-xr-xcontrib/non-profit-audit-reports/csv2ods.py2
-rwxr-xr-xtest/LedgerHarness.py4
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()