diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-20 22:26:39 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-20 22:26:39 +0100 |
commit | d09e55dfbb793fc01c18d82eacbc59d6056a9390 (patch) | |
tree | d1ffb53838cc16a1eaa22dcf43044f6d06971ad7 /contrib/csvsecurityqif.py | |
parent | 08ab6ec214e63d1924c8e6764622322edb90bbd5 (diff) | |
download | kmymoney-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-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" |