Skip to content

Commit ae00b81

Browse files
authored
gh-104780: Remove 2to3 program and lib2to3 module (#104781)
* Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal.
1 parent ddb1485 commit ae00b81

File tree

135 files changed

+26
-21000
lines changed

Some content is hidden

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

135 files changed

+26
-21000
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ Doc/.venv/
6161
Doc/env/
6262
Doc/.env/
6363
Include/pydtrace_probes.h
64-
Lib/lib2to3/*.pickle
6564
Lib/site-packages/*
6665
!Lib/site-packages/README.txt
6766
Lib/test/data/*

Doc/glossary.rst

-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ Glossary
2222

2323
* The :const:`Ellipsis` built-in constant.
2424

25-
2to3
26-
A tool that tries to convert Python 2.x code to Python 3.x code by
27-
handling most of the incompatibilities which can be detected by parsing the
28-
source and traversing the parse tree.
29-
30-
2to3 is available in the standard library as :mod:`lib2to3`; a standalone
31-
entry point is provided as :file:`Tools/scripts/2to3`. See
32-
:ref:`2to3-reference`.
33-
3425
abstract base class
3526
Abstract base classes complement :term:`duck-typing` by
3627
providing a way to define interfaces when other techniques like

0 commit comments

Comments
 (0)