Skip to content

Commit d01c925

Browse files
authored
Merge branch 'main' into pyio-take-bytes
2 parents a61f732 + e56ae81 commit d01c925

49 files changed

Lines changed: 536 additions & 242 deletions

Some content is hidden

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

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ jobs:
3838
run: echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
3939
- name: Install Homebrew dependencies
4040
run: |
41-
brew install pkg-config openssl@3.5 xz gdbm tcl-tk@9 make
42-
# Because alternate versions are not symlinked into place by default:
43-
brew link --overwrite tcl-tk@9
41+
brew bundle --file=Misc/Brewfile
42+
brew install make
4443
- name: Configure CPython
4544
run: |
4645
MACOSX_DEPLOYMENT_TARGET=10.15 \

Doc/library/codecs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ particular, the following variants typically exist:
11551155
+-----------------+--------------------------------+--------------------------------+
11561156
| cp857 | 857, IBM857 | Turkish |
11571157
+-----------------+--------------------------------+--------------------------------+
1158-
| cp858 | 858, IBM858 | Western Europe |
1158+
| cp858 | 858, IBM00858 | Western Europe |
11591159
+-----------------+--------------------------------+--------------------------------+
11601160
| cp860 | 860, IBM860 | Portuguese |
11611161
+-----------------+--------------------------------+--------------------------------+
@@ -1192,7 +1192,7 @@ particular, the following variants typically exist:
11921192
| | | |
11931193
| | | .. versionadded:: 3.4 |
11941194
+-----------------+--------------------------------+--------------------------------+
1195-
| cp1140 | ibm1140 | Western Europe |
1195+
| cp1140 | IBM01140 | Western Europe |
11961196
+-----------------+--------------------------------+--------------------------------+
11971197
| cp1250 | windows-1250 | Central and Eastern Europe |
11981198
+-----------------+--------------------------------+--------------------------------+

Doc/library/select.rst

Lines changed: 135 additions & 125 deletions
Large diffs are not rendered by default.

Doc/tools/extensions/pydoc_topics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"in",
6969
"integers",
7070
"lambda",
71+
"lazy",
7172
"lists",
7273
"naming",
7374
"nonlocal",

Doc/whatsnew/3.16.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ mimetypes
141141
:meth:`mimetypes.MimeTypes.add_type`.
142142
Undotted extensions now raise a :exc:`ValueError`.
143143

144+
shutil
145+
------
146+
147+
* The :exc:`!ExecError` exception which has been deprecated since Python 3.14.
148+
It has not been used by any function in :mod:`!shutil` since Python 3.4.
149+
(Contributed by Stan Ulbrych in :gh:`149567`.)
150+
144151
symtable
145152
--------
146153

@@ -161,6 +168,7 @@ sysconfig
161168
* The :func:`!sysconfig.expand_makefile_vars` function
162169
which has been deprecated since Python 3.14.
163170
Use the ``vars`` argument of :func:`sysconfig.get_paths` instead.
171+
(Contributed by Stan Ulbrych in :gh:`149499`.)
164172

165173
tarfile
166174
-------

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111
# Import _thread instead of threading to reduce startup cost
1212
from _thread import allocate_lock as Lock
13-
if sys.platform in {'win32', 'cygwin'}:
13+
if sys.platform == 'win32':
1414
from msvcrt import setmode as _setmode
1515
else:
1616
_setmode = None

Lib/ctypes/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,11 @@ def LoadLibrary(self, name):
549549

550550
if _os.name == "nt":
551551
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
552-
elif _sys.platform in ["android", "cygwin"]:
552+
elif _sys.platform == "android":
553553
# These are Unix-like platforms which use a dynamically-linked libpython.
554554
pythonapi = PyDLL(_sysconfig.get_config_var("LDLIBRARY"))
555+
elif _sys.platform == "cygwin":
556+
pythonapi = PyDLL(_sysconfig.get_config_var("DLLLIBRARY"))
555557
else:
556558
pythonapi = PyDLL(None)
557559

Lib/encodings/aliases.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171

7272
# cp1140 codec
7373
'1140' : 'cp1140',
74+
'cp01140' : 'cp1140',
75+
'csibm01140' : 'cp1140',
76+
'ebcdic_us_37_euro' : 'cp1140',
77+
'ibm01140' : 'cp1140',
7478
'ibm1140' : 'cp1140',
7579

7680
# cp1250 codec
@@ -159,8 +163,12 @@
159163

160164
# cp858 codec
161165
'858' : 'cp858',
166+
'cp00858' : 'cp858',
167+
'csibm00858' : 'cp858',
162168
'csibm858' : 'cp858',
169+
'ibm00858' : 'cp858',
163170
'ibm858' : 'cp858',
171+
'pc_multilingual_850_euro' : 'cp858',
164172

165173
# cp860 codec
166174
'860' : 'cp860',

Lib/pydoc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,7 @@ class Helper:
18451845
'in': ('in', 'SEQUENCEMETHODS'),
18461846
'is': 'COMPARISON',
18471847
'lambda': ('lambda', 'FUNCTIONS'),
1848+
'lazy': ('lazy', 'MODULES'),
18481849
'nonlocal': ('nonlocal', 'global NAMESPACES'),
18491850
'not': 'BOOLEAN',
18501851
'or': 'BOOLEAN',

Lib/shutil.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,15 +1638,3 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
16381638
if _access_check(name, mode):
16391639
return name
16401640
return None
1641-
1642-
def __getattr__(name):
1643-
if name == "ExecError":
1644-
import warnings
1645-
warnings._deprecated(
1646-
"shutil.ExecError",
1647-
f"{warnings._DEPRECATED_MSG}; it "
1648-
"isn't raised by any shutil function.",
1649-
remove=(3, 16)
1650-
)
1651-
return RuntimeError
1652-
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

0 commit comments

Comments
 (0)