From 12bdef608e9f1e76c454e23fe255d2900bde658b Mon Sep 17 00:00:00 2001 From: CaptainDDL Date: Sun, 10 Jul 2022 12:51:27 -0500 Subject: [PATCH] Updated to run in Python 3 --- ynambImportProcessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ynambImportProcessor.py b/ynambImportProcessor.py index 5623857..260c165 100644 --- a/ynambImportProcessor.py +++ b/ynambImportProcessor.py @@ -15,7 +15,7 @@ try: recentTransactionsFile = max(glob.iglob('transactions*.csv'), key=os.path.getctime) except ValueError: - print "No file name matching the pattern 'transactions*.csv' found. Make sure script and Mint transactions file are in same directory." + print("No file name matching the pattern 'transactions*.csv' found. Make sure script and Mint transactions file are in same directory.") sys.exit(0) def arguments(): @@ -42,7 +42,7 @@ def arguments(): # Read the transactions file tempEntryList = [] -print 'Using Mint CSV file {}'.format(os.path.abspath(args.importFile)) +print('Using Mint CSV file {}'.format(os.path.abspath(args.importFile))) with open(args.importFile, 'r') as csvReadObject: reader = csv.DictReader(csvReadObject) @@ -80,7 +80,7 @@ def arguments(): tempDict['Inflow'] = entry['Amount'] tempDict['Outflow'] = 0 else: - print 'New transaction type observed - exiting.' + print('New transaction type observed - exiting.') sys.exit(0) # add tempDict to appropriate account in accountDict