File: python3.13.patch

package info (click to toggle)
doxyqml 0.5.3-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: python: 1,349; cpp: 165; makefile: 9; sh: 8
file content (22 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Andreas Tille <tille@debian.org>
Last-Update: 2026-01-05
Bug-Debian: https://bugs.debian.org/1085554
Description: Fix syntax warnings when using Python3.13

--- a/doxyqml/lexer.py
+++ b/doxyqml/lexer.py
@@ -62,10 +62,10 @@ class Lexer(object):
             # - an escaped char (\n, \t...)
             # then a double or single quote
             Tokenizer(STRING, re.compile(r'("([^\\"]|(\\.))*"|\'([^\\\']|(\\.))*\')')),
-            Tokenizer(BLOCK_START, re.compile("(?<!')\{(?!')")),
-            Tokenizer(BLOCK_END, re.compile("(?<!')\}(?!')")),
-            Tokenizer(ARRAY_START, re.compile("\[")),
-            Tokenizer(ARRAY_END, re.compile("\]")),
+            Tokenizer(BLOCK_START, re.compile(r"(?<!')\{(?!')")),
+            Tokenizer(BLOCK_END, re.compile(r"(?<!')\}(?!')")),
+            Tokenizer(ARRAY_START, re.compile(r"\[")),
+            Tokenizer(ARRAY_END, re.compile(r"\]")),
             Tokenizer(IMPORT, re.compile(r"import\s+.*")),
             Tokenizer(PRAGMA, re.compile(r"pragma\s+\w.*")),
             Tokenizer(KEYWORD, re.compile(r"(default\s+property|property|readonly\s+property|signal|enum)\s+")),