bpo-40360: Deprecate the lib2to3 package (GH-28116) · python/cpython@d589a7e · GitHub
Skip to content

Commit d589a7e

Browse files
authored
bpo-40360: Deprecate the lib2to3 package (GH-28116)
1 parent 679cb47 commit d589a7e

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

Doc/whatsnew/3.11.rst

Lines changed: 3 additions & 0 deletions

Lib/lib2to3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
warnings.warn(
55
"lib2to3 package is deprecated and may not be able to parse Python 3.10+",
6-
PendingDeprecationWarning,
6+
DeprecationWarning,
77
stacklevel=2,
88
)

Lib/test/test_lib2to3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from test.support.import_helper import import_fresh_module
33
from test.support.warnings_helper import check_warnings
44

5-
with check_warnings(("", PendingDeprecationWarning)):
5+
with check_warnings(("", DeprecationWarning)):
66
load_tests = import_fresh_module('lib2to3.tests', fresh=['lib2to3']).load_tests
77

88
if __name__ == '__main__':
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)