]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104780: Remove 2to3 program and lib2to3 module (#104781)
authorVictor Stinner <vstinner@python.org>
Tue, 23 May 2023 17:40:02 +0000 (19:40 +0200)
committerGitHub <noreply@github.com>
Tue, 23 May 2023 17:40:02 +0000 (19:40 +0200)
commitae00b810d1d3ad7f1f7e226b02ece37c986330e7
tree173ec10e86e887adad8740e7833c92a464779917
parentddb14859535ab8091381b9d0baf32dbe245b5e65
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.
135 files changed:
.gitignore
Doc/glossary.rst
Doc/library/2to3.rst [deleted file]
Doc/library/development.rst
Doc/tools/.nitignore
Doc/tools/extensions/pyspecific.py
Doc/whatsnew/3.0.rst
Doc/whatsnew/3.11.rst
Doc/whatsnew/3.13.rst
Doc/whatsnew/3.9.rst
Lib/lib2to3/Grammar.txt [deleted file]
Lib/lib2to3/PatternGrammar.txt [deleted file]
Lib/lib2to3/__init__.py [deleted file]
Lib/lib2to3/__main__.py [deleted file]
Lib/lib2to3/btm_matcher.py [deleted file]
Lib/lib2to3/btm_utils.py [deleted file]
Lib/lib2to3/fixer_base.py [deleted file]
Lib/lib2to3/fixer_util.py [deleted file]
Lib/lib2to3/fixes/__init__.py [deleted file]
Lib/lib2to3/fixes/fix_apply.py [deleted file]
Lib/lib2to3/fixes/fix_asserts.py [deleted file]
Lib/lib2to3/fixes/fix_basestring.py [deleted file]
Lib/lib2to3/fixes/fix_buffer.py [deleted file]
Lib/lib2to3/fixes/fix_dict.py [deleted file]
Lib/lib2to3/fixes/fix_except.py [deleted file]
Lib/lib2to3/fixes/fix_exec.py [deleted file]
Lib/lib2to3/fixes/fix_execfile.py [deleted file]
Lib/lib2to3/fixes/fix_exitfunc.py [deleted file]
Lib/lib2to3/fixes/fix_filter.py [deleted file]
Lib/lib2to3/fixes/fix_funcattrs.py [deleted file]
Lib/lib2to3/fixes/fix_future.py [deleted file]
Lib/lib2to3/fixes/fix_getcwdu.py [deleted file]
Lib/lib2to3/fixes/fix_has_key.py [deleted file]
Lib/lib2to3/fixes/fix_idioms.py [deleted file]
Lib/lib2to3/fixes/fix_import.py [deleted file]
Lib/lib2to3/fixes/fix_imports.py [deleted file]
Lib/lib2to3/fixes/fix_imports2.py [deleted file]
Lib/lib2to3/fixes/fix_input.py [deleted file]
Lib/lib2to3/fixes/fix_intern.py [deleted file]
Lib/lib2to3/fixes/fix_isinstance.py [deleted file]
Lib/lib2to3/fixes/fix_itertools.py [deleted file]
Lib/lib2to3/fixes/fix_itertools_imports.py [deleted file]
Lib/lib2to3/fixes/fix_long.py [deleted file]
Lib/lib2to3/fixes/fix_map.py [deleted file]
Lib/lib2to3/fixes/fix_metaclass.py [deleted file]
Lib/lib2to3/fixes/fix_methodattrs.py [deleted file]
Lib/lib2to3/fixes/fix_ne.py [deleted file]
Lib/lib2to3/fixes/fix_next.py [deleted file]
Lib/lib2to3/fixes/fix_nonzero.py [deleted file]
Lib/lib2to3/fixes/fix_numliterals.py [deleted file]
Lib/lib2to3/fixes/fix_operator.py [deleted file]
Lib/lib2to3/fixes/fix_paren.py [deleted file]
Lib/lib2to3/fixes/fix_print.py [deleted file]
Lib/lib2to3/fixes/fix_raise.py [deleted file]
Lib/lib2to3/fixes/fix_raw_input.py [deleted file]
Lib/lib2to3/fixes/fix_reduce.py [deleted file]
Lib/lib2to3/fixes/fix_reload.py [deleted file]
Lib/lib2to3/fixes/fix_renames.py [deleted file]
Lib/lib2to3/fixes/fix_repr.py [deleted file]
Lib/lib2to3/fixes/fix_set_literal.py [deleted file]
Lib/lib2to3/fixes/fix_standarderror.py [deleted file]
Lib/lib2to3/fixes/fix_sys_exc.py [deleted file]
Lib/lib2to3/fixes/fix_throw.py [deleted file]
Lib/lib2to3/fixes/fix_tuple_params.py [deleted file]
Lib/lib2to3/fixes/fix_types.py [deleted file]
Lib/lib2to3/fixes/fix_unicode.py [deleted file]
Lib/lib2to3/fixes/fix_urllib.py [deleted file]
Lib/lib2to3/fixes/fix_ws_comma.py [deleted file]
Lib/lib2to3/fixes/fix_xrange.py [deleted file]
Lib/lib2to3/fixes/fix_xreadlines.py [deleted file]
Lib/lib2to3/fixes/fix_zip.py [deleted file]
Lib/lib2to3/main.py [deleted file]
Lib/lib2to3/patcomp.py [deleted file]
Lib/lib2to3/pgen2/__init__.py [deleted file]
Lib/lib2to3/pgen2/conv.py [deleted file]
Lib/lib2to3/pgen2/driver.py [deleted file]
Lib/lib2to3/pgen2/grammar.py [deleted file]
Lib/lib2to3/pgen2/literals.py [deleted file]
Lib/lib2to3/pgen2/parse.py [deleted file]
Lib/lib2to3/pgen2/pgen.py [deleted file]
Lib/lib2to3/pgen2/token.py [deleted file]
Lib/lib2to3/pgen2/tokenize.py [deleted file]
Lib/lib2to3/pygram.py [deleted file]
Lib/lib2to3/pytree.py [deleted file]
Lib/lib2to3/refactor.py [deleted file]
Lib/test/test_lib2to3/__init__.py [deleted file]
Lib/test/test_lib2to3/__main__.py [deleted file]
Lib/test/test_lib2to3/data/README [deleted file]
Lib/test/test_lib2to3/data/bom.py [deleted file]
Lib/test/test_lib2to3/data/crlf.py [deleted file]
Lib/test/test_lib2to3/data/different_encoding.py [deleted file]
Lib/test/test_lib2to3/data/false_encoding.py [deleted file]
Lib/test/test_lib2to3/data/fixers/bad_order.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/__init__.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/fix_explicit.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/fix_first.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/fix_last.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/fix_parrot.py [deleted file]
Lib/test/test_lib2to3/data/fixers/myfixes/fix_preorder.py [deleted file]
Lib/test/test_lib2to3/data/fixers/no_fixer_cls.py [deleted file]
Lib/test/test_lib2to3/data/fixers/parrot_example.py [deleted file]
Lib/test/test_lib2to3/data/infinite_recursion.py [deleted file]
Lib/test/test_lib2to3/data/py2_test_grammar.py [deleted file]
Lib/test/test_lib2to3/data/py3_test_grammar.py [deleted file]
Lib/test/test_lib2to3/pytree_idempotency.py [deleted file]
Lib/test/test_lib2to3/support.py [deleted file]
Lib/test/test_lib2to3/test_all_fixers.py [deleted file]
Lib/test/test_lib2to3/test_fixers.py [deleted file]
Lib/test/test_lib2to3/test_main.py [deleted file]
Lib/test/test_lib2to3/test_parser.py [deleted file]
Lib/test/test_lib2to3/test_pytree.py [deleted file]
Lib/test/test_lib2to3/test_refactor.py [deleted file]
Lib/test/test_lib2to3/test_util.py [deleted file]
Lib/test/test_tools/test_sundry.py
Mac/BuildScript/scripts/postflight.framework
Mac/Makefile.in
Makefile.pre.in
Misc/NEWS.d/3.11.0a1.rst
Misc/NEWS.d/3.8.0a1.rst
Misc/NEWS.d/3.9.0a3.rst
Misc/NEWS.d/3.9.0a6.rst
Misc/NEWS.d/next/Library/2023-05-23-03-36-47.gh-issue-104780.P4e3Yf.rst [new file with mode: 0644]
PC/layout/main.py
PC/layout/support/props.py
PC/layout/support/python.props
Python/stdlib_module_names.h
Tools/README
Tools/msi/bundle/packagegroups/postinstall.wxs
Tools/msi/lib/lib_files.wxs
Tools/msi/msi.props
Tools/peg_generator/Makefile
Tools/peg_generator/scripts/benchmark.py
Tools/scripts/2to3 [deleted file]
Tools/scripts/README
Tools/wasm/wasm_assets.py