summaryrefslogtreecommitdiffstats
path: root/contrib/csvsecurityqif.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-20 22:26:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-20 22:26:39 +0100
commitd09e55dfbb793fc01c18d82eacbc59d6056a9390 (patch)
treed1ffb53838cc16a1eaa22dcf43044f6d06971ad7 /contrib/csvsecurityqif.py
parent08ab6ec214e63d1924c8e6764622322edb90bbd5 (diff)
downloadkmymoney-d09e55dfbb793fc01c18d82eacbc59d6056a9390.tar.gz
kmymoney-d09e55dfbb793fc01c18d82eacbc59d6056a9390.zip
Drop python2 support.r14.1.0
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'contrib/csvsecurityqif.py')
-rwxr-xr-xcontrib/csvsecurityqif.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/csvsecurityqif.py b/contrib/csvsecurityqif.py
index 5f5e888..1014e3f 100755
--- a/contrib/csvsecurityqif.py
+++ b/contrib/csvsecurityqif.py
@@ -20,10 +20,10 @@
#***************************************************************************/
import csv
-# *** NOTE ***
+# *** NOTE ***
# It may be necessary to remove the second line, before running.
-# Simple utility to convert a csv format Securities file, as from later
+# Simple utility to convert a csv format Securities file, as from later
# editions of Quicken, to qif format for KMyMoney2.
# It and its data files are expected to be in the same directory.
#
@@ -35,11 +35,11 @@ import csv
# These fields are accepted and suffixed with 'M' in the output file.
# Anything of importance in them will need to be copy/pasted into KMM.
-fin = raw_input('Please enter the input Securities filename (.csv, .PRN, etc.) : ')
-fout = raw_input('Please enter the output filename (add .qif) : ')
+fin = input('Please enter the input Securities filename (.csv, .PRN, etc.) : ')
+fout = input('Please enter the output filename (add .qif) : ')
line = csv.reader(open(fin, "rb"))
outputfile = open(fout, 'w')
-line.next() # Skip header line. Comment out if no header.
+next(line) # Skip header line. Comment out if no header.
line_list = []
line_list.extend(line)
line = "!Option:AutoSwitch\n"