diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 06:47:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 06:47:34 +0000 |
commit | 14db8c8f10377607c85a7fe449af8001a64f088e (patch) | |
tree | 83d4e03e3790bb3c1e8ff94d78f83494c780ea71 /contrib/non-profit-audit-reports/readcsv.py | |
parent | 88e6591b09c84ea8ecd5a576e6c9c5dbe565819a (diff) | |
parent | 2a452853224e3a9a8a516c5e5b105b2738b6912f (diff) | |
download | fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.gz fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.bz2 fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.zip |
Merge pull request #2308 from afh/migrate-py-scripts
Migrate python scripts
Diffstat (limited to 'contrib/non-profit-audit-reports/readcsv.py')
-rwxr-xr-x | contrib/non-profit-audit-reports/readcsv.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/non-profit-audit-reports/readcsv.py b/contrib/non-profit-audit-reports/readcsv.py index 67fc5663..932b4df9 100755 --- a/contrib/non-profit-audit-reports/readcsv.py +++ b/contrib/non-profit-audit-reports/readcsv.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # readcsv.py # CSV reading technical study # @@ -23,9 +23,9 @@ import csv dialects = csv.list_dialects() for dialect in dialects: - print 'dialect %s' % str(dialect) + print(f'dialect {dialect}') -csvfile = open('tests/general-ledger.csv', 'rb') +csvfile = open('test/general-ledger.csv', 'rb') reader = csv.reader(csvfile, delimiter=',', quotechar='"') for row in reader: - print row + print(row) |