Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit e706f43

Browse files
committed
Merged upstream changes.
2 parents abe40bc + b2d6179 commit e706f43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/whatsnew/3.7.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ API and Feature Removals
137137
------------------------
138138

139139
* Unknown escapes consisting of ``'\'`` and an ASCII letter in replacement
140-
templates for :func:`re.sub` will now cause an error.
140+
templates for :func:`re.sub` were deprecated in Python 3.5, and will now
141+
cause an error.
141142

142143
* Removed support of the *exclude* argument in :meth:`tarfile.TarFile.add`.
143-
Use the *filter* argument instead.
144+
It was deprecated in Python 2.7 and 3.2. Use the *filter* argument instead.
144145

145146
* The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in
146147
Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive`
@@ -159,11 +160,13 @@ Changes in the Python API
159160

160161
* A format string argument for :meth:`string.Formatter.format`
161162
is now :ref:`positional-only <positional-only_parameter>`.
163+
Passing it as a keyword argument was deprecated in Python 3.5.
162164
(Contributed by Serhiy Storchaka in :issue:`29193`.)
163165

164166
* Attributes :attr:`~http.cookies.Morsel.key`,
165167
:attr:`~http.cookies.Morsel.value` and
166168
:attr:`~http.cookies.Morsel.coded_value` of class
167169
:class:`http.cookies.Morsel` are now read-only.
170+
Assigning to them was deprecated in Python 3.5.
168171
Use the :meth:`~http.cookies.Morsel.set` method for setting them.
169172
(Contributed by Serhiy Storchaka in :issue:`29192`.)

0 commit comments

Comments
 (0)