Skip to content

Commit 9fd4f22

Browse files
author
Git for Windows Build Agent
committed
Update 1 package
mingw-w64-i686-python (3.12.9-5 -> 3.12.10-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent b47543a commit 9fd4f22

File tree

236 files changed

+15089
-18177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+15089
-18177
lines changed

etc/rebase.db.i386

0 Bytes
Binary file not shown.

mingw32/bin/libpython3.12.dll

3 KB
Binary file not shown.

mingw32/bin/libpython3.dll

0 Bytes
Binary file not shown.

mingw32/bin/python.exe

0 Bytes
Binary file not shown.

mingw32/bin/python3.12.exe

0 Bytes
Binary file not shown.

mingw32/bin/python3.exe

0 Bytes
Binary file not shown.

mingw32/bin/python3w.exe

0 Bytes
Binary file not shown.

mingw32/bin/pythonw.exe

0 Bytes
Binary file not shown.

mingw32/include/python3.12/cpython/pythread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PyAPI_FUNC(int) _PyThread_at_fork_reinit(PyThread_type_lock *lock);
2121
*/
2222
# define NATIVE_TSS_KEY_T unsigned long
2323
#elif defined(HAVE_PTHREAD_STUBS)
24-
# include "cpython/pthread_stubs.h"
24+
# include "pthread_stubs.h"
2525
# define NATIVE_TSS_KEY_T pthread_key_t
2626
#else
2727
# error "Require native threads. See https://bugs.python.org/issue31370"

mingw32/include/python3.12/internal/pycore_condvar.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
#define Py_HAVE_CONDVAR
4444

4545
/* include windows if it hasn't been done before */
46-
#define WIN32_LEAN_AND_MEAN
47-
#include <windows.h>
46+
#ifndef WIN32_LEAN_AND_MEAN
47+
# define WIN32_LEAN_AND_MEAN
48+
#endif
49+
#include <windows.h> // CRITICAL_SECTION
4850
/* winpthreads are involved via windows header, so need undef _POSIX_THREADS after header include */
4951
#if defined(_POSIX_THREADS)
5052
#undef _POSIX_THREADS

mingw32/include/python3.12/internal/pycore_sysmodule.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11+
PyAPI_FUNC(int) _PySys_GetOptionalAttr(PyObject *, PyObject **);
12+
PyAPI_FUNC(int) _PySys_GetOptionalAttrString(const char *, PyObject **);
13+
PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttr(PyObject *);
14+
PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttrString(const char *);
15+
1116
PyAPI_FUNC(int) _PySys_Audit(
1217
PyThreadState *tstate,
1318
const char *event,

mingw32/include/python3.12/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 12
21-
#define PY_MICRO_VERSION 9
21+
#define PY_MICRO_VERSION 10
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.12.9"
26+
#define PY_VERSION "3.12.10"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

mingw32/lib/libpython3.12.dll.a

4.1 KB
Binary file not shown.

mingw32/lib/python3.12/Tools/i18n/msgfmt.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,19 @@ def make(filename, outfile):
148148
msgctxt = b''
149149
elif l.startswith('msgid') and not l.startswith('msgid_plural'):
150150
if section == STR:
151-
add(msgctxt, msgid, msgstr, fuzzy)
152151
if not msgid:
152+
# Filter out POT-Creation-Date
153+
# See issue #131852
154+
msgstr = b''.join(line for line in msgstr.splitlines(True)
155+
if not line.startswith(b'POT-Creation-Date:'))
156+
153157
# See whether there is an encoding declaration
154158
p = HeaderParser()
155159
charset = p.parsestr(msgstr.decode(encoding)).get_content_charset()
156160
if charset:
157161
encoding = charset
162+
add(msgctxt, msgid, msgstr, fuzzy)
163+
msgctxt = None
158164
section = ID
159165
l = l[5:]
160166
msgid = msgstr = b''

mingw32/lib/python3.12/Tools/i18n/pygettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def make_escapes(pass_nonascii):
207207
global escapes, escape
208208
if pass_nonascii:
209209
# Allow non-ascii characters to pass through so that e.g. 'msgid
210-
# "Höhe"' would result not result in 'msgid "H\366he"'. Otherwise we
210+
# "Höhe"' would not result in 'msgid "H\366he"'. Otherwise we
211211
# escape any character outside the 32..126 range.
212212
mod = 128
213213
escape = escape_ascii

mingw32/lib/python3.12/_pydatetime.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ def _parse_hh_mm_ss_ff(tstr):
402402
raise ValueError("Invalid microsecond component")
403403
else:
404404
pos += 1
405+
if not all(map(_is_ascii_digit, tstr[pos:])):
406+
raise ValueError("Non-digit values in fraction")
405407

406408
len_remainder = len_str - pos
407409

@@ -413,9 +415,6 @@ def _parse_hh_mm_ss_ff(tstr):
413415
time_comps[3] = int(tstr[pos:(pos+to_parse)])
414416
if to_parse < 6:
415417
time_comps[3] *= _FRACTION_CORRECTION[to_parse-1]
416-
if (len_remainder > to_parse
417-
and not all(map(_is_ascii_digit, tstr[(pos+to_parse):]))):
418-
raise ValueError("Non-digit values in unparsed fraction")
419418

420419
return time_comps
421420

mingw32/lib/python3.12/_sysconfigdata__win32_.py

Lines changed: 122 additions & 121 deletions
Large diffs are not rendered by default.

mingw32/lib/python3.12/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,8 +1264,8 @@ async def _sendfile_fallback(self, transp, file, offset, count):
12641264
read = await self.run_in_executor(None, file.readinto, view)
12651265
if not read:
12661266
return total_sent # EOF
1267-
await proto.drain()
12681267
transp.write(view[:read])
1268+
await proto.drain()
12691269
total_sent += read
12701270
finally:
12711271
if total_sent > 0 and hasattr(file, 'seek'):

mingw32/lib/python3.12/collections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class Counter(dict):
588588
# References:
589589
# http://en.wikipedia.org/wiki/Multiset
590590
# http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html
591-
# http://www.demo2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
591+
# http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
592592
# http://code.activestate.com/recipes/259174/
593593
# Knuth, TAOCP Vol. II section 4.6.3
594594

mingw32/lib/python3.12/config-3.12/Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ MODLIBS= $(LOCALMODLIBS) $(BASEMODLIBS)
2929

3030
# === Variables set by configure
3131
VERSION= 3.12
32-
srcdir= ../Python-3.12.9
33-
VPATH= ../Python-3.12.9
34-
abs_srcdir= /d/M/B/src/build-MINGW32/../Python-3.12.9
32+
srcdir= ../Python-3.12.10
33+
VPATH= ../Python-3.12.10
34+
abs_srcdir= /d/M/B/src/build-MINGW32/../Python-3.12.10
3535
abs_builddir= /d/M/B/src/build-MINGW32
3636

3737

@@ -126,7 +126,7 @@ PY_CORE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE
126126
PY_CORE_LDFLAGS=$(PY_LDFLAGS) $(PY_LDFLAGS_NODIST)
127127
# Strict or non-strict aliasing flags used to compile dtoa.c, see above
128128
CFLAGS_ALIASING=
129-
RCFLAGS= -DFIELD3=9150 -O COFF --target=pe-i386
129+
RCFLAGS= -DFIELD3=10150 -O COFF --target=pe-i386
130130

131131

132132
# Machine-dependent subdirectories
@@ -146,8 +146,8 @@ exec_prefix= ${prefix}
146146
datarootdir= ${prefix}/share
147147

148148
# Locations needed for semi-native fixup of sysconfig.
149-
srcdir_b2h= D:/M/B/src/Python-3.12.9
150-
abs_srcdir_b2h= D:/M/B/src/Python-3.12.9
149+
srcdir_b2h= D:/M/B/src/Python-3.12.10
150+
abs_srcdir_b2h= D:/M/B/src/Python-3.12.10
151151
abs_builddir_b2h= D:/M/B/src/build-MINGW32
152152
prefix_b2h= D:/a/msys64/mingw32
153153

@@ -1783,7 +1783,7 @@ Python/frozen.o: $(FROZEN_FILES_OUT)
17831783
# an include guard, so we can't use a pipeline to transform its output.
17841784
Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
17851785
$(MKDIR_P) Include
1786-
$(DTRACE) $(DFLAGS) -o $@ -h -s $<
1786+
CC="$(CC)" CFLAGS="$(CFLAGS)" $(DTRACE) $(DFLAGS) -o $@ -h -s $<
17871787
: sed in-place edit with POSIX-only tools
17881788
sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp
17891789
mv $@.tmp $@
@@ -1793,7 +1793,7 @@ Python/import.o: $(srcdir)/Include/pydtrace.h
17931793
Modules/gcmodule.o: $(srcdir)/Include/pydtrace.h
17941794

17951795
Python/pydtrace.o: $(srcdir)/Include/pydtrace.d $(DTRACE_DEPS)
1796-
$(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
1796+
CC="$(CC)" CFLAGS="$(CFLAGS)" $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
17971797

17981798
Objects/typeobject.o: Objects/typeslots.inc
17991799

@@ -2452,6 +2452,7 @@ TESTSUBDIRS= idlelib/idle_test \
24522452
test/test_tomllib/data/valid/multiline-basic-str \
24532453
test/test_tools \
24542454
test/test_tools/i18n_data \
2455+
test/test_tools/msgfmt_data \
24552456
test/test_ttk \
24562457
test/test_unittest \
24572458
test/test_unittest/testmock \

mingw32/lib/python3.12/config-3.12/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated automatically from ../Python-3.12.9/Modules/config.c.in by makesetup. */
1+
/* Generated automatically from ../Python-3.12.10/Modules/config.c.in by makesetup. */
22
/* -*- C -*- ***********************************************
33
Copyright (c) 2000, BeOpen.com.
44
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
0 Bytes
Binary file not shown.

mingw32/lib/python3.12/difflib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ def _line_pair_iterator():
16281628
</html>"""
16291629

16301630
_styles = """
1631-
table.diff {font-family:Courier; border:medium;}
1631+
table.diff {font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; border:medium}
16321632
.diff_header {background-color:#e0e0e0}
16331633
td.diff_header {text-align:right}
16341634
.diff_next {background-color:#c0c0c0}

mingw32/lib/python3.12/email/_header_value_parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ def get_fws(value):
10531053
fws = WhiteSpaceTerminal(value[:len(value)-len(newvalue)], 'fws')
10541054
return fws, newvalue
10551055

1056-
def get_encoded_word(value):
1056+
def get_encoded_word(value, terminal_type='vtext'):
10571057
""" encoded-word = "=?" charset "?" encoding "?" encoded-text "?="
10581058
10591059
"""
@@ -1092,7 +1092,7 @@ def get_encoded_word(value):
10921092
ew.append(token)
10931093
continue
10941094
chars, *remainder = _wsp_splitter(text, 1)
1095-
vtext = ValueTerminal(chars, 'vtext')
1095+
vtext = ValueTerminal(chars, terminal_type)
10961096
_validate_xtext(vtext)
10971097
ew.append(vtext)
10981098
text = ''.join(remainder)
@@ -1134,7 +1134,7 @@ def get_unstructured(value):
11341134
valid_ew = True
11351135
if value.startswith('=?'):
11361136
try:
1137-
token, value = get_encoded_word(value)
1137+
token, value = get_encoded_word(value, 'utext')
11381138
except _InvalidEwError:
11391139
valid_ew = False
11401140
except errors.HeaderParseError:
@@ -1163,7 +1163,7 @@ def get_unstructured(value):
11631163
# the parser to go in an infinite loop.
11641164
if valid_ew and rfc2047_matcher.search(tok):
11651165
tok, *remainder = value.partition('=?')
1166-
vtext = ValueTerminal(tok, 'vtext')
1166+
vtext = ValueTerminal(tok, 'utext')
11671167
_validate_xtext(vtext)
11681168
unstructured.append(vtext)
11691169
value = ''.join(remainder)
@@ -2813,7 +2813,7 @@ def _refold_parse_tree(parse_tree, *, policy):
28132813
continue
28142814
tstr = str(part)
28152815
if not want_encoding:
2816-
if part.token_type == 'ptext':
2816+
if part.token_type in ('ptext', 'vtext'):
28172817
# Encode if tstr contains special characters.
28182818
want_encoding = not SPECIALSNL.isdisjoint(tstr)
28192819
else:

mingw32/lib/python3.12/ensurepip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
__all__ = ["version", "bootstrap"]
1212
_PACKAGE_NAMES = ('pip',)
13-
_PIP_VERSION = "24.3.1"
13+
_PIP_VERSION = "25.0.1"
1414
_PROJECTS = [
1515
("pip", _PIP_VERSION, "py3"),
1616
]

mingw32/lib/python3.12/enum.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,10 +771,15 @@ def __contains__(cls, value):
771771
`value` is in `cls` if:
772772
1) `value` is a member of `cls`, or
773773
2) `value` is the value of one of the `cls`'s members.
774+
3) `value` is a pseudo-member (flags)
774775
"""
775776
if isinstance(value, cls):
776777
return True
777-
return value in cls._value2member_map_ or value in cls._unhashable_values_
778+
try:
779+
cls(value)
780+
return True
781+
except ValueError:
782+
return value in cls._unhashable_values_
778783

779784
def __delattr__(cls, attr):
780785
# nicer error message when someone tries to delete an attribute

mingw32/lib/python3.12/graphlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def done(self, *nodes):
154154
This method unblocks any successor of each node in *nodes* for being returned
155155
in the future by a call to "get_ready".
156156
157-
Raises :exec:`ValueError` if any node in *nodes* has already been marked as
157+
Raises ValueError if any node in *nodes* has already been marked as
158158
processed by a previous call to this method, if a node was not added to the
159159
graph by using "add" or if called without calling "prepare" previously or if
160160
node has not yet been returned by "get_ready".

0 commit comments

Comments
 (0)