Skip to content

Commit 8a3d0e4

Browse files
gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469)
1 parent e87cadc commit 8a3d0e4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Lib/test/pydocfodder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import types
44

5-
class A_new:
6-
"A new-style class."
5+
class A:
6+
"A class."
77

88
def A_method(self):
99
"Method defined in A."
@@ -41,8 +41,8 @@ def _delx(self):
4141

4242
A_int_alias = int
4343

44-
class B_new(A_new):
45-
"A new-style class, derived from A_new."
44+
class B(A):
45+
"A class, derived from A."
4646

4747
def AB_method(self):
4848
"Method defined in A and B."
@@ -61,8 +61,8 @@ def BD_method(self):
6161
def BCD_method(self):
6262
"Method defined in B, C and D."
6363

64-
class C_new(A_new):
65-
"A new-style class, derived from A_new."
64+
class C(A):
65+
"A class, derived from A."
6666

6767
def AC_method(self):
6868
"Method defined in A and C."
@@ -81,8 +81,8 @@ def C_method(self):
8181
def CD_method(self):
8282
"Method defined in C and D."
8383

84-
class D_new(B_new, C_new):
85-
"""A new-style class, derived from B_new and C_new.
84+
class D(B, C):
85+
"""A class, derived from B and C.
8686
"""
8787

8888
def AD_method(self):

0 commit comments

Comments
 (0)