There was an error while loading. Please reload this page.
1 parent 7bafa0c commit fdbdf3fCopy full SHA for fdbdf3f
2 files changed
Doc/library/2to3.rst
@@ -11,6 +11,11 @@ contains a rich set of fixers that will handle almost all code. 2to3 supporting
11
library :mod:`lib2to3` is, however, a flexible and generic library, so it is
12
possible to write your own fixers for 2to3.
13
14
+.. deprecated-removed:: 3.11 3.13
15
+ The ``lib2to3`` module was marked pending for deprecation in Python 3.9
16
+ (raising :exc:`PendingDeprecationWarning` on import) and fully deprecated
17
+ in Python 3.11 (raising :exc:`DeprecationWarning`). The ``2to3`` tool is
18
+ part of that. It will be removed in Python 3.13.
19
20
.. _2to3-using:
21
Doc/whatsnew/3.11.rst
@@ -308,9 +308,9 @@ CPython bytecode changes
308
Deprecated
309
==========
310
311
-* The :mod:`lib2to3` package is now deprecated and may not be able to parse
312
- Python 3.10 or newer. See the :pep:`617` (New PEG parser for CPython).
313
- (Contributed by Victor Stinner in :issue:`40360`.)
+* The :mod:`lib2to3` package and ``2to3`` tool are now deprecated and may not
+ be able to parse Python 3.10 or newer. See the :pep:`617` (New PEG parser for
+ CPython). (Contributed by Victor Stinner in :issue:`40360`.)
314
315
* :class:`webbrowser.MacOSX` is deprecated and will be removed in Python 3.13.
316
It is untested and undocumented and also not used by webbrowser itself.
0 commit comments