Skip to content

Commit fdaaed2

Browse files
Merge remote-tracking branch 'upstream/main' into properly_disable
2 parents cf99661 + 247b50d commit fdaaed2

31 files changed

+341
-338
lines changed

Doc/c-api/init.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ Process-wide parameters
604604
interpreter will change the contents of this storage.
605605
606606
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
607-
:c:expr:`wchar_*` string.
607+
:c:expr:`wchar_t*` string.
608608
609609
.. deprecated-removed:: 3.11 3.15
610610
@@ -852,7 +852,7 @@ Process-wide parameters
852852
directory (``"."``).
853853
854854
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
855-
:c:expr:`wchar_*` string.
855+
:c:expr:`wchar_t*` string.
856856
857857
See also :c:member:`PyConfig.orig_argv` and :c:member:`PyConfig.argv`
858858
members of the :ref:`Python Initialization Configuration <init-config>`.
@@ -888,7 +888,7 @@ Process-wide parameters
888888
:option:`-I`.
889889
890890
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
891-
:c:expr:`wchar_*` string.
891+
:c:expr:`wchar_t*` string.
892892
893893
See also :c:member:`PyConfig.orig_argv` and :c:member:`PyConfig.argv`
894894
members of the :ref:`Python Initialization Configuration <init-config>`.
@@ -914,7 +914,7 @@ Process-wide parameters
914914
this storage.
915915
916916
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
917-
:c:expr:`wchar_*` string.
917+
:c:expr:`wchar_t*` string.
918918
919919
.. deprecated-removed:: 3.11 3.15
920920

Doc/library/dbm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ The :mod:`!dbm.dumb` module defines the following:
455455
.. method:: dumbdbm.sync()
456456

457457
Synchronize the on-disk directory and data files. This method is called
458-
by the :meth:`Shelve.sync` method.
458+
by the :meth:`shelve.Shelf.sync` method.
459459

460460
.. method:: dumbdbm.close()
461461

Doc/library/plistlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This module defines the following functions:
9999

100100
.. function:: dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False, aware_datetime=False)
101101

102-
Write *value* to a plist file. *Fp* should be a writable, binary
102+
Write *value* to a plist file. *fp* should be a writable, binary
103103
file object.
104104

105105
The *fmt* argument specifies the format of the plist file and can be

Doc/library/smtplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ An :class:`SMTP` instance has the following methods:
524524
:mailheader:`Bcc` or :mailheader:`Resent-Bcc` headers that may appear
525525
in *msg*. If any of the addresses in *from_addr* and *to_addrs* contain
526526
non-ASCII characters and the server does not advertise ``SMTPUTF8`` support,
527-
an :exc:`SMTPNotSupported` error is raised. Otherwise the ``Message`` is
527+
an :exc:`SMTPNotSupportedError` is raised. Otherwise the ``Message`` is
528528
serialized with a clone of its :mod:`~email.policy` with the
529529
:attr:`~email.policy.EmailPolicy.utf8` attribute set to ``True``, and
530530
``SMTPUTF8`` and ``BODY=8BITMIME`` are added to *mail_options*.

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Doc/library/ast.rst
1616
Doc/library/asyncio-extending.rst
1717
Doc/library/asyncio-subprocess.rst
1818
Doc/library/collections.rst
19-
Doc/library/dbm.rst
2019
Doc/library/decimal.rst
2120
Doc/library/email.charset.rst
2221
Doc/library/email.compat32-message.rst

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ Build Changes
18191819
* ``PYTHON_FOR_REGEN`` now require Python 3.10 or newer.
18201820

18211821
* Autoconf 2.71 and aclocal 1.16.4 is now required to regenerate
1822-
:file:`!configure`.
1822+
:file:`configure`.
18231823
(Contributed by Christian Heimes in :gh:`89886`.)
18241824

18251825
* Windows builds and macOS installers from python.org now use OpenSSL 3.0.

Doc/whatsnew/3.14.rst

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ ctypes
367367

368368
* The layout of :ref:`bit fields <ctypes-bit-fields-in-structures-unions>`
369369
in :class:`~ctypes.Structure` and :class:`~ctypes.Union`
370-
now matches platform defaults (GCC/Clang or MVSC) more closely.
370+
now matches platform defaults (GCC/Clang or MSVC) more closely.
371371
In particular, fields no longer overlap.
372372
(Contributed by Matthias Görgens in :gh:`97702`.)
373373

@@ -411,6 +411,13 @@ decimal
411411
:meth:`Decimal.from_number() <decimal.Decimal.from_number>`.
412412
(Contributed by Serhiy Storchaka in :gh:`121798`.)
413413

414+
difflib
415+
-------
416+
417+
* Comparison pages with highlighted changes generated by the
418+
:class:`difflib.HtmlDiff` class now support dark mode.
419+
(Contributed by Jiahao Li in :gh:`129939`.)
420+
414421
dis
415422
---
416423

@@ -481,6 +488,14 @@ http
481488
(Contributed by Yorik Hansen in :gh:`123430`.)
482489

483490

491+
imaplib
492+
-------
493+
494+
* Add :meth:`IMAP4.idle() <imaplib.IMAP4.idle>`, implementing the IMAP4
495+
``IDLE`` command as defined in :rfc:`2177`.
496+
(Contributed by Forest in :gh:`55454`.)
497+
498+
484499
inspect
485500
-------
486501

@@ -496,13 +511,6 @@ inspect
496511
:term:`package` or not.
497512
(Contributed by Zhikang Yan in :gh:`125634`.)
498513

499-
imaplib
500-
-------
501-
502-
* Add :meth:`IMAP4.idle() <imaplib.IMAP4.idle>`, implementing the IMAP4
503-
``IDLE`` command as defined in :rfc:`2177`.
504-
(Contributed by Forest in :gh:`55454`.)
505-
506514

507515
io
508516
--
@@ -631,7 +639,6 @@ pathlib
631639
:func:`~os.stat` results. Path objects generated by
632640
:meth:`~pathlib.Path.iterdir` are initialized with file type information
633641
gleaned from scanning the parent directory.
634-
635642
(Contributed by Barney Gale in :gh:`125413`.)
636643

637644

@@ -670,7 +677,6 @@ platform
670677
--------
671678

672679
* Add :func:`platform.invalidate_caches` to invalidate the cached results.
673-
674680
(Contributed by Bénédikt Tran in :gh:`122549`.)
675681

676682

@@ -809,13 +815,11 @@ zipinfo
809815
* Added :func:`ZipInfo._for_archive <zipfile.ZipInfo._for_archive>`
810816
to resolve suitable defaults for a :class:`~zipfile.ZipInfo` object
811817
as used by :func:`ZipFile.writestr <zipfile.ZipFile.writestr>`.
812-
813818
(Contributed by Bénédikt Tran in :gh:`123424`.)
814819

815820
* :meth:`zipfile.ZipFile.writestr` now respect ``SOURCE_DATE_EPOCH`` that
816821
distributions can set centrally and have build tools consume this in order
817822
to produce reproducible output.
818-
819823
(Contributed by Jiahao Li in :gh:`91279`.)
820824

821825
.. Add improved modules above alphabetically, not here at the end.
@@ -1004,7 +1008,6 @@ ast
10041008
* :attr:`!ast.Constant.s`
10051009

10061010
Use :attr:`!ast.Constant.value` instead.
1007-
10081011
(Contributed by Alex Waygood in :gh:`119562`.)
10091012

10101013
asyncio
@@ -1213,7 +1216,6 @@ urllib
12131216
:func:`~urllib.request.urlretrieve`. Customizations to the opener
12141217
classes can be replaced by passing customized handlers to
12151218
:func:`~urllib.request.build_opener`.
1216-
12171219
(Contributed by Barney Gale in :gh:`84850`.)
12181220

12191221
Others
@@ -1466,6 +1468,8 @@ Porting to Python 3.14
14661468
.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/
14671469

14681470

1471+
.. _whatsnew314-c-api-deprecated:
1472+
14691473
Deprecated
14701474
----------
14711475

@@ -1505,17 +1509,17 @@ Deprecated
15051509

15061510
The `pythoncapi-compat project`_ can be used to get these new public
15071511
functions on Python 3.13 and older.
1508-
15091512
(Contributed by Victor Stinner in :gh:`128863`.)
15101513

1511-
15121514
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
15131515

15141516
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
15151517

15161518
.. include:: ../deprecations/c-api-pending-removal-in-future.rst
15171519

15181520

1521+
.. _whatsnew314-c-api-removed:
1522+
15191523
Removed
15201524
-------
15211525

Lib/difflib.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,13 +1632,22 @@ def _line_pair_iterator():
16321632
</html>"""
16331633

16341634
_styles = """
1635+
:root {color-scheme: light dark}
16351636
table.diff {font-family:Courier; border:medium;}
16361637
.diff_header {background-color:#e0e0e0}
16371638
td.diff_header {text-align:right}
16381639
.diff_next {background-color:#c0c0c0}
1639-
.diff_add {background-color:#aaffaa}
1640+
.diff_add {background-color:palegreen}
16401641
.diff_chg {background-color:#ffff77}
1641-
.diff_sub {background-color:#ffaaaa}"""
1642+
.diff_sub {background-color:#ffaaaa}
1643+
1644+
@media (prefers-color-scheme: dark) {
1645+
.diff_header {background-color:#666}
1646+
.diff_next {background-color:#393939}
1647+
.diff_add {background-color:darkgreen}
1648+
.diff_chg {background-color:#847415}
1649+
.diff_sub {background-color:darkred}
1650+
}"""
16421651

16431652
_table_template = """
16441653
<table class="diff" id="difflib_chg_%(prefix)s_top"

Lib/test/test_difflib_expect.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@
99
content="text/html; charset=utf-8" />
1010
<title></title>
1111
<style type="text/css">
12+
:root {color-scheme: light dark}
1213
table.diff {font-family:Courier; border:medium;}
1314
.diff_header {background-color:#e0e0e0}
1415
td.diff_header {text-align:right}
1516
.diff_next {background-color:#c0c0c0}
16-
.diff_add {background-color:#aaffaa}
17+
.diff_add {background-color:palegreen}
1718
.diff_chg {background-color:#ffff77}
1819
.diff_sub {background-color:#ffaaaa}
20+
21+
@media (prefers-color-scheme: dark) {
22+
.diff_header {background-color:#666}
23+
.diff_next {background-color:#393939}
24+
.diff_add {background-color:darkgreen}
25+
.diff_chg {background-color:#847415}
26+
.diff_sub {background-color:darkred}
27+
}
1928
</style>
2029
</head>
2130

Lib/test/test_sqlite3/test_userfunctions.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def tearDown(self):
171171
self.con.close()
172172

173173
def test_func_error_on_create(self):
174-
with self.assertRaises(sqlite.OperationalError):
174+
with self.assertRaisesRegex(sqlite.ProgrammingError, "not -100"):
175175
self.con.create_function("bla", -100, lambda x: 2*x)
176176

177177
def test_func_too_many_args(self):
@@ -507,9 +507,8 @@ def test_win_sum_int(self):
507507
self.assertEqual(self.cur.fetchall(), self.expected)
508508

509509
def test_win_error_on_create(self):
510-
self.assertRaises(sqlite.ProgrammingError,
511-
self.con.create_window_function,
512-
"shouldfail", -100, WindowSumInt)
510+
with self.assertRaisesRegex(sqlite.ProgrammingError, "not -100"):
511+
self.con.create_window_function("shouldfail", -100, WindowSumInt)
513512

514513
@with_tracebacks(BadWindow)
515514
def test_win_exception_in_method(self):
@@ -638,7 +637,7 @@ def tearDown(self):
638637
self.con.close()
639638

640639
def test_aggr_error_on_create(self):
641-
with self.assertRaises(sqlite.OperationalError):
640+
with self.assertRaisesRegex(sqlite.ProgrammingError, "not -100"):
642641
self.con.create_function("bla", -100, AggrSum)
643642

644643
@with_tracebacks(AttributeError, msg_regex="AggrNoStep")

0 commit comments

Comments
 (0)