mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 15:21:52 +00:00
bug found by python 3.11
This commit is contained in:
parent
96281c33e8
commit
0b89979418
@ -67,7 +67,7 @@ def parseCaveQMs(cave, inputFile, ticked=False):
|
|||||||
#qmPath = settings.EXPOWEB+inputFile
|
#qmPath = settings.EXPOWEB+inputFile
|
||||||
qmPath = os.path.join(settings.EXPOWEB, inputFile) # why not use the pathlib stuff ?
|
qmPath = os.path.join(settings.EXPOWEB, inputFile) # why not use the pathlib stuff ?
|
||||||
|
|
||||||
qmCSVContents = open(qmPath,'rU')
|
qmCSVContents = open(qmPath,'r')
|
||||||
dialect=csv.Sniffer().sniff(qmCSVContents.read())
|
dialect=csv.Sniffer().sniff(qmCSVContents.read())
|
||||||
qmCSVContents.seek(0,0)
|
qmCSVContents.seek(0,0)
|
||||||
qmReader = csv.reader(qmCSVContents,dialect=dialect)
|
qmReader = csv.reader(qmCSVContents,dialect=dialect)
|
||||||
|
Loading…
Reference in New Issue
Block a user