make python 2 compatible

This commit is contained in:
Axel Kohlmeyer
2022-03-16 12:56:19 -04:00
parent 72425f1874
commit bb4268518b

View File

@ -34,7 +34,7 @@ lg = log(logfile)
if columns == []:
lg.write(datafile, writenames)
else:
str = f"lg.write(datafile, {writenames},"
for word in columns: str += '"' + word + '",'
str = str[:-1] + ')'
str = "lg.write(datafile, %r" % writenames
for word in columns: str += ',"' + word + '"'
str += ')'
eval(str)