From c8e268a63882a9cdeb48d5e2f0e030e14a50e57d Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Mon, 28 Nov 2022 11:29:39 -0600 Subject: user/thunderbird: add patches for python 3.11. fixes #900. --- .../python3.11-regex-inline-flags.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 user/thunderbird/python3.11-regex-inline-flags.patch (limited to 'user/thunderbird/python3.11-regex-inline-flags.patch') 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.*?\n?)%\}[ ]*(C\+\+)?" ++ r"(?s:%\{[ ]*C\+\+[ ]*\n(?P.*?\n?)%\}[ ]*(C\+\+)?)" + t.type = "CDATA" + t.value = t.lexer.lexmatch.group("cdata") + t.lexer.lineno += t.value.count("\n") -- cgit v1.2.3-60-g2f50