diff options
Diffstat (limited to 'contrib/csvsecurityqif.py')
-rwxr-xr-x | contrib/csvsecurityqif.py | 10 |
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" |