From 50d753a87b5f6bc4fe31e222a37796cf903133f7 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 24 May 2020 01:57:06 +0100 Subject: Convert codebase for python3 usage --- export/toqms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'export/toqms.py') diff --git a/export/toqms.py b/export/toqms.py index 2564094..69e565c 100644 --- a/export/toqms.py +++ b/export/toqms.py @@ -22,10 +22,10 @@ def qmRow(qm): } qmRow=['' for x in range(len(headers))] - for column, modelField in columnsToModelFields.items(): + for column, modelField in list(columnsToModelFields.items()): if modelField: # Very sorry about the atrocious replace below. I will fix this soon if noone beats me to it. - AC - qmRow[headers.index(column)]=modelField.replace(u'\xd7','x').replace(u'\u201c','').replace(u'\u2013','').replace(u'\xbd','') + qmRow[headers.index(column)]=modelField.replace('\xd7','x').replace('\u201c','').replace('\u2013','').replace('\xbd','') return qmRow def writeQmTable(outfile,cave): -- cgit v1.2.3