diff options
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) |