https://github.com/python/cpython/commit/83a69a6a013f4bb88a2a7bf3c1be974c7bc67e45
commit: 83a69a6a013f4bb88a2a7bf3c1be974c7bc67e45
branch: 3.11
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-02-11T14:51:32Z
summary:

[3.11] gh-113468: Remove the "_new_ suffix from class names in pydocfodder 
(GH-113469) (GH-115300)

(cherry picked from commit 8a3d0e4a661e6c27e4c17c818ce4187a36579e5f)

Co-authored-by: Serhiy Storchaka <[email protected]>

files:
M Lib/test/pydocfodder.py

diff --git a/Lib/test/pydocfodder.py b/Lib/test/pydocfodder.py
index d0750e5a43c0c0..a3ef2231243954 100644
--- a/Lib/test/pydocfodder.py
+++ b/Lib/test/pydocfodder.py
@@ -2,8 +2,8 @@
 
 import types
 
-class A_new:
-    "A new-style class."
+class A:
+    "A class."
 
     def A_method(self):
         "Method defined in A."
@@ -41,8 +41,8 @@ def _delx(self):
 
     A_int_alias = int
 
-class B_new(A_new):
-    "A new-style class, derived from A_new."
+class B(A):
+    "A class, derived from A."
 
     def AB_method(self):
         "Method defined in A and B."
@@ -61,8 +61,8 @@ def BD_method(self):
     def BCD_method(self):
         "Method defined in B, C and D."
 
-class C_new(A_new):
-    "A new-style class, derived from A_new."
+class C(A):
+    "A class, derived from A."
 
     def AC_method(self):
         "Method defined in A and C."
@@ -81,8 +81,8 @@ def C_method(self):
     def CD_method(self):
         "Method defined in C and D."
 
-class D_new(B_new, C_new):
-    """A new-style class, derived from B_new and C_new.
+class D(B, C):
+    """A class, derived from B and C.
     """
 
     def AD_method(self):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to