diff options
author | Zach van Rijn <me@zv.io> | 2022-11-28 11:29:39 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-28 11:29:39 -0600 |
commit | c8e268a63882a9cdeb48d5e2f0e030e14a50e57d (patch) | |
tree | 1e41a5fb4ed01f23e66842a7c9c0284d00d4f53e /user/thunderbird/python3.11-regex-inline-flags.patch | |
parent | 07853cee39a9303a2d81c964534b05e2312cef8e (diff) | |
download | packages-c8e268a63882a9cdeb48d5e2f0e030e14a50e57d.tar.gz packages-c8e268a63882a9cdeb48d5e2f0e030e14a50e57d.tar.bz2 packages-c8e268a63882a9cdeb48d5e2f0e030e14a50e57d.tar.xz packages-c8e268a63882a9cdeb48d5e2f0e030e14a50e57d.zip |
user/thunderbird: add patches for python 3.11. fixes #900.
Diffstat (limited to 'user/thunderbird/python3.11-regex-inline-flags.patch')
-rw-r--r-- | user/thunderbird/python3.11-regex-inline-flags.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/user/thunderbird/python3.11-regex-inline-flags.patch b/user/thunderbird/python3.11-regex-inline-flags.patch new file mode 100644 index 000000000..39481ec01 --- /dev/null +++ b/user/thunderbird/python3.11-regex-inline-flags.patch @@ -0,0 +1,27 @@ +--- thunderbird-91.11.0/xpcom/idl-parser/xpidl/xpidl.py.python-inline-flags 2022-06-28 04:39:56.000000000 +0200 ++++ thunderbird-91.11.0/xpcom/idl-parser/xpidl/xpidl.py 2022-07-11 21:55:05.287553042 +0200 +@@ -1563,13 +1563,13 @@ class IDLParser(object): + t_ignore = " \t" + + def t_multilinecomment(self, t): +- r"/\*(?s).*?\*/" ++ r"/\*(?s:.*?)\*/" + t.lexer.lineno += t.value.count("\n") + if t.value.startswith("/**"): + self._doccomments.append(t.value) + + def t_singlelinecomment(self, t): +- r"(?m)//.*?$" ++ r"(?m://.*?$)" + + def t_IID(self, t): + return t +@@ -1582,7 +1582,7 @@ class IDLParser(object): + return t + + def t_LCDATA(self, t): +- r"(?s)%\{[ ]*C\+\+[ ]*\n(?P<cdata>.*?\n?)%\}[ ]*(C\+\+)?" ++ r"(?s:%\{[ ]*C\+\+[ ]*\n(?P<cdata>.*?\n?)%\}[ ]*(C\+\+)?)" + t.type = "CDATA" + t.value = t.lexer.lexmatch.group("cdata") + t.lexer.lineno += t.value.count("\n") |