From 0b89979418d76b3ef8f4af55730ddf4b99ea4d68 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 15 Nov 2022 23:56:35 +0000 Subject: [PATCH] bug found by python 3.11 --- parsers/QMs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/QMs.py b/parsers/QMs.py index 484499a..12028eb 100644 --- a/parsers/QMs.py +++ b/parsers/QMs.py @@ -67,7 +67,7 @@ def parseCaveQMs(cave, inputFile, ticked=False): #qmPath = settings.EXPOWEB+inputFile 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()) qmCSVContents.seek(0,0) qmReader = csv.reader(qmCSVContents,dialect=dialect)