summaryrefslogtreecommitdiff
path: root/dev-python/sip/files
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sip/files')
-rw-r--r--dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch b/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch
new file mode 100644
index 000000000000..908111627854
--- /dev/null
+++ b/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch
@@ -0,0 +1,21 @@
+
+# HG changeset patch
+# User Phil Thompson <phil@riverbankcomputing.com>
+# Date 1651507410 -3600
+# Node ID 3d656f0765f508ea9714b5e7c9ce00e304e6f600
+# Parent c179f418c5bee188e3ec7a0c0e50f9eab34cf12f
+Fixed indented directives.
+
+diff -r c179f418c5be -r 3d656f0765f5 sipbuild/generator/parser/tokens.py
+--- a/sipbuild/generator/parser/tokens.py Mon May 02 16:51:06 2022 +0100
++++ b/sipbuild/generator/parser/tokens.py Mon May 02 17:03:30 2022 +0100
+@@ -174,7 +174,7 @@
+
+ # Handle directives.
+ def t_DIRECTIVE(t):
+- r'(?m)^\s*%[a-zA-Z][a-zA-Z]*'
++ r'%[a-zA-Z][a-zA-Z]*'
+
+ # The name of the directive is used as its type.
+ name = t.value[t.value.index('%') + 1:]
+