Skip to content

Commit

Permalink
Update 3 packages
Browse files Browse the repository at this point in the history
mingw-w64-i686-python (3.11.7-2 -> 3.11.8-1)
mingw-w64-x86_64-python (3.11.7-2 -> 3.11.8-1)
python (3.11.7-1 -> 3.11.8-1)

Signed-off-by: Git for Windows Build Agent <ci@git-for-windows.build>
  • Loading branch information
Git for Windows Build Agent committed Feb 14, 2024
1 parent a5920a6 commit 863c871
Show file tree
Hide file tree
Showing 772 changed files with 12,394 additions and 4,725 deletions.
Binary file modified mingw32/bin/libpython3.11.dll
Binary file not shown.
Binary file modified mingw32/bin/libpython3.dll
Binary file not shown.
Binary file modified mingw32/bin/python.exe
Binary file not shown.
Binary file modified mingw32/bin/python3.11.exe
Binary file not shown.
Binary file modified mingw32/bin/python3.exe
Binary file not shown.
Binary file modified mingw32/bin/python3w.exe
Binary file not shown.
Binary file modified mingw32/bin/pythonw.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions mingw32/include/python3.11/internal/pycore_ast_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ extern "C" {

struct ast_state {
int initialized;
int recursion_depth;
int recursion_limit;
int unused_recursion_depth;
int unused_recursion_limit;
PyObject *AST_type;
PyObject *Add_singleton;
PyObject *Add_type;
Expand Down
4 changes: 2 additions & 2 deletions mingw32/include/python3.11/patchlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 11
#define PY_MICRO_VERSION 7
#define PY_MICRO_VERSION 8
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0

/* Version as a string */
#define PY_VERSION "3.11.7"
#define PY_VERSION "3.11.8"
/*--end constants--*/

/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
Expand Down
5 changes: 5 additions & 0 deletions mingw32/lib/python3.11/_osx_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ def get_platform_osx(_config_vars, osname, release, machine):
# MACOSX_DEPLOYMENT_TARGET.

macver = _config_vars.get('MACOSX_DEPLOYMENT_TARGET', '')
if macver and '.' not in macver:
# Ensure that the version includes at least a major
# and minor version, even if MACOSX_DEPLOYMENT_TARGET
# is set to a single-label version like "14".
macver += '.0'
macrelease = _get_system_version() or macver
macver = macver or macrelease

Expand Down
10 changes: 6 additions & 4 deletions mingw32/lib/python3.11/_pyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2224,8 +2224,9 @@ def write(self, s):
self.buffer.write(b)
if self._line_buffering and (haslf or "\r" in s):
self.flush()
self._set_decoded_chars('')
self._snapshot = None
if self._snapshot is not None:
self._set_decoded_chars('')
self._snapshot = None
if self._decoder:
self._decoder.reset()
return length
Expand Down Expand Up @@ -2539,8 +2540,9 @@ def read(self, size=None):
# Read everything.
result = (self._get_decoded_chars() +
decoder.decode(self.buffer.read(), final=True))
self._set_decoded_chars('')
self._snapshot = None
if self._snapshot is not None:
self._set_decoded_chars('')
self._snapshot = None
return result
else:
# Keep reading chunks until we have size characters to return.
Expand Down
27 changes: 13 additions & 14 deletions mingw32/lib/python3.11/_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
tz = -1
gmtoff = None
gmtoff_fraction = 0
# Default to -1 to signify that values not known; not critical to have,
# though
iso_week = week_of_year = None
week_of_year_start = None
# weekday and julian defaulted to None so as to signal need to calculate
Expand Down Expand Up @@ -485,17 +483,17 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
break
# Deal with the cases where ambiguities arize
# don't assume default values for ISO week/year
if year is None and iso_year is not None:
if iso_week is None or weekday is None:
raise ValueError("ISO year directive '%G' must be used with "
"the ISO week directive '%V' and a weekday "
"directive ('%A', '%a', '%w', or '%u').")
if iso_year is not None:
if julian is not None:
raise ValueError("Day of the year directive '%j' is not "
"compatible with ISO year directive '%G'. "
"Use '%Y' instead.")
elif week_of_year is None and iso_week is not None:
if weekday is None:
elif iso_week is None or weekday is None:
raise ValueError("ISO year directive '%G' must be used with "
"the ISO week directive '%V' and a weekday "
"directive ('%A', '%a', '%w', or '%u').")
elif iso_week is not None:
if year is None or weekday is None:
raise ValueError("ISO week directive '%V' must be used with "
"the ISO year directive '%G' and a weekday "
"directive ('%A', '%a', '%w', or '%u').")
Expand All @@ -505,11 +503,12 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
"instead.")

leap_year_fix = False
if year is None and month == 2 and day == 29:
year = 1904 # 1904 is first leap year of 20th century
leap_year_fix = True
elif year is None:
year = 1900
if year is None:
if month == 2 and day == 29:
year = 1904 # 1904 is first leap year of 20th century
leap_year_fix = True
else:
year = 1900


# If we know the week of the year and what day of that week, we can figure
Expand Down
Loading

0 comments on commit 863c871

Please sign in to comment.