summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-23 18:46:44 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-23 18:46:44 +0000
commit8fd09bef92b899ad0ba839eb9eedf1073fce5cc7 (patch)
treec947afaaf9a5cbd1af892b04c87e397e9c52e8dd /core
parent521fd20e37de00179cfe92a5458a9baf80129c6a (diff)
downloadtroggle-8fd09bef92b899ad0ba839eb9eedf1073fce5cc7.tar.gz
troggle-8fd09bef92b899ad0ba839eb9eedf1073fce5cc7.tar.bz2
troggle-8fd09bef92b899ad0ba839eb9eedf1073fce5cc7.zip
python 3.12 discovered syntax issues
Diffstat (limited to 'core')
-rw-r--r--core/TESTS/test_parsers.py2
-rw-r--r--core/views/prospect.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py
index 8274f89..1c7b929 100644
--- a/core/TESTS/test_parsers.py
+++ b/core/TESTS/test_parsers.py
@@ -171,7 +171,7 @@ class ImportTest(TestCase):
# f.write(content)
expected = [
"Edit Logbook Entry on 1986-07-31",
- "Other names \(comma separated\)", # regex so slashes need to be espcaped
+ r"Other names \(comma separated\)", # regex match so slashes need to be espcaped
"Place: cave name, or 'plateau', 'topcamp' etc.",
]
for ph in expected:
diff --git a/core/views/prospect.py b/core/views/prospect.py
index 561c6d3..cff53f5 100644
--- a/core/views/prospect.py
+++ b/core/views/prospect.py
@@ -129,7 +129,7 @@ for FONT in [
"/usr/share/fonts/truetype/freefont/FreeSans.ttf",
"/usr/X11R6/lib/X11/fonts/truetype/arial.ttf",
"/mnt/c/windows/fonts/arial.ttf",
- "C:\WINNT\Fonts\ARIAL.TTF",
+ r"C:\WINNT\Fonts\ARIAL.TTF",
]:
if os.path.isfile(FONT):
break