Change Python -> python

(lowercase convention)
This commit is contained in:
fosslinux 2023-01-18 22:57:04 +11:00
parent a4d1a445ac
commit 6ec368ce37
46 changed files with 30 additions and 30 deletions

View file

@ -0,0 +1,18 @@
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
SPDX-License-Identifier: PSF-2.0
When defined __DATE__ is in the format MMM DD YYYY. xx/xx/xx does
not comply with this so the parser in Lib/platform.py fails on it.
--- Modules/getbuildinfo.c 2022-12-21 13:41:18.120573458 +1100
+++ Modules/getbuildinfo.c 2022-12-21 13:41:30.399716652 +1100
@@ -8,7 +8,7 @@
#ifdef __DATE__
#define DATE __DATE__
#else
-#define DATE "xx/xx/xx"
+#define DATE "xxx xx xxxx"
#endif
#endif

View file

@ -0,0 +1,20 @@
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
SPDX-License-Identifier: PSF-2.0
MAXGROUPS constant was introduced in this upgrade. Hardcode it
from a "normal" system. This seems particularly unproblematic
if it is wrong, since it does next to nothing.
--- Lib/sre_constants.py 2022-12-20 12:05:01.176104156 +1100
+++ Lib/sre_constants.py 2022-12-20 12:05:21.710376396 +1100
@@ -15,7 +15,8 @@
MAGIC = 20171005
-from _sre import MAXREPEAT, MAXGROUPS
+from _sre import MAXREPEAT
+MAXGROUPS = 1073741823
# SRE standard exception (access as sre.error)
# should this really be here?

View file

@ -0,0 +1,26 @@
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
SPDX-License-Identifier: PSF-2.0
I'm not sure what was going on here when this was written, or how
it ever worked! But this small simple fix works 0.0
--- Lib/sre_constants.py 2022-12-20 18:30:21.883561534 +1100
+++ Lib/sre_constants.py 2022-12-20 18:31:23.209190748 +1100
@@ -56,6 +56,7 @@
class _NamedIntConstant(int):
def __new__(cls, value, name):
self = super(_NamedIntConstant, cls).__new__(cls, value)
+ self.value = value
self.name = name
return self
@@ -219,7 +220,7 @@
def dump(f, d, prefix):
items = sorted(d)
for item in items:
- f.write("#define %s_%s %d\n" % (prefix, item, item))
+ f.write("#define %s_%s %d\n" % (prefix, item.name, item.value))
with open("sre_constants.h", "w") as f:
f.write("""\
/*