summaryrefslogtreecommitdiffstats
path: root/parsers/QMs.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-11-15 23:56:35 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2022-11-15 23:56:35 +0000
commit0b89979418d76b3ef8f4af55730ddf4b99ea4d68 (patch)
treebd1dd8379b0c4dc43ff626d3fb966e8c327ea89e /parsers/QMs.py
parent96281c33e89195b0120ba5c4ad8828f0ba1c2b4e (diff)
downloadtroggle-0b89979418d76b3ef8f4af55730ddf4b99ea4d68.tar.gz
troggle-0b89979418d76b3ef8f4af55730ddf4b99ea4d68.tar.bz2
troggle-0b89979418d76b3ef8f4af55730ddf4b99ea4d68.zip
bug found by python 3.11
Diffstat (limited to 'parsers/QMs.py')
-rw-r--r--parsers/QMs.py2
1 files changed, 1 insertions, 1 deletions
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)