This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,11 @@ API and Feature Removals
137
137
------------------------
138
138
139
139
* 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.
141
142
142
143
* 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.
144
145
145
146
* The ``splitunc() `` function in the :mod: `ntpath ` module was deprecated in
146
147
Python 3.1, and has now been removed. Use the :func: `~os.path.splitdrive `
@@ -159,11 +160,13 @@ Changes in the Python API
159
160
160
161
* A format string argument for :meth: `string.Formatter.format `
161
162
is now :ref: `positional-only <positional-only_parameter >`.
163
+ Passing it as a keyword argument was deprecated in Python 3.5.
162
164
(Contributed by Serhiy Storchaka in :issue: `29193 `.)
163
165
164
166
* Attributes :attr: `~http.cookies.Morsel.key `,
165
167
:attr: `~http.cookies.Morsel.value ` and
166
168
:attr: `~http.cookies.Morsel.coded_value ` of class
167
169
:class: `http.cookies.Morsel ` are now read-only.
170
+ Assigning to them was deprecated in Python 3.5.
168
171
Use the :meth: `~http.cookies.Morsel.set ` method for setting them.
169
172
(Contributed by Serhiy Storchaka in :issue: `29192 `.)
You can’t perform that action at this time.
0 commit comments