Skip to content

Commit

Permalink
pythongh-104780: Remove 2to3 program and lib2to3 module (python#104781)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
vstinner authored May 23, 2023
1 parent ddb1485 commit ae00b81
Show file tree
Hide file tree
Showing 135 changed files with 26 additions and 21,000 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Doc/.venv/
Doc/env/
Doc/.env/
Include/pydtrace_probes.h
Lib/lib2to3/*.pickle
Lib/site-packages/*
!Lib/site-packages/README.txt
Lib/test/data/*
Expand Down
9 changes: 0 additions & 9 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ Glossary

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

2to3
A tool that tries to convert Python 2.x code to Python 3.x code by
handling most of the incompatibilities which can be detected by parsing the
source and traversing the parse tree.

2to3 is available in the standard library as :mod:`lib2to3`; a standalone
entry point is provided as :file:`Tools/scripts/2to3`. See
:ref:`2to3-reference`.

abstract base class
Abstract base classes complement :term:`duck-typing` by
providing a way to define interfaces when other techniques like
Expand Down
Loading

0 comments on commit ae00b81

Please sign in to comment.