From 8fd09bef92b899ad0ba839eb9eedf1073fce5cc7 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 23 Nov 2023 18:46:44 +0000 Subject: python 3.12 discovered syntax issues --- core/TESTS/test_parsers.py | 2 +- core/views/prospect.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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 -- cgit v1.2.3