beremiz

PY_EXT: fix exception with CSV loading.
py2compat
16 months ago, Edouard Tisserant
aa516096d22f
Parents 9e7283b30376
Children aaa12d90b1bf
PY_EXT: fix exception with CSV loading.
--- a/py_ext/py_ext_rt.py Fri Feb 07 14:29:11 2025 +0100
+++ b/py_ext/py_ext_rt.py Tue Feb 11 15:59:23 2025 +0100
@@ -54,7 +54,7 @@
dialect = csv.Sniffer().sniff(csvfile.read(1024))
csvfile.seek(0)
reader = csv.reader(csvfile, dialect)
- first_row = reader.__next__()
+ first_row = reader.next()
data.append(first_row)
col_headers = OrderedDict([(name, index+1) for index, name
in enumerate(first_row[1:])])