Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ynambImportProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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)

Expand Down Expand Up @@ -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
Expand Down