mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
[3.12] gh-113468: Remove the "_new_ suffix from class names in pydocfodder (GH-113469) (GH-113483)
(cherry picked from commit 8a3d0e4a66
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
8a95500367
commit
1cf576a358
1 changed files with 8 additions and 8 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import types
|
import types
|
||||||
|
|
||||||
class A_new:
|
class A:
|
||||||
"A new-style class."
|
"A class."
|
||||||
|
|
||||||
def A_method(self):
|
def A_method(self):
|
||||||
"Method defined in A."
|
"Method defined in A."
|
||||||
|
@ -41,8 +41,8 @@ class A_new:
|
||||||
|
|
||||||
A_int_alias = int
|
A_int_alias = int
|
||||||
|
|
||||||
class B_new(A_new):
|
class B(A):
|
||||||
"A new-style class, derived from A_new."
|
"A class, derived from A."
|
||||||
|
|
||||||
def AB_method(self):
|
def AB_method(self):
|
||||||
"Method defined in A and B."
|
"Method defined in A and B."
|
||||||
|
@ -61,8 +61,8 @@ class B_new(A_new):
|
||||||
def BCD_method(self):
|
def BCD_method(self):
|
||||||
"Method defined in B, C and D."
|
"Method defined in B, C and D."
|
||||||
|
|
||||||
class C_new(A_new):
|
class C(A):
|
||||||
"A new-style class, derived from A_new."
|
"A class, derived from A."
|
||||||
|
|
||||||
def AC_method(self):
|
def AC_method(self):
|
||||||
"Method defined in A and C."
|
"Method defined in A and C."
|
||||||
|
@ -81,8 +81,8 @@ class C_new(A_new):
|
||||||
def CD_method(self):
|
def CD_method(self):
|
||||||
"Method defined in C and D."
|
"Method defined in C and D."
|
||||||
|
|
||||||
class D_new(B_new, C_new):
|
class D(B, C):
|
||||||
"""A new-style class, derived from B_new and C_new.
|
"""A class, derived from B and C.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def AD_method(self):
|
def AD_method(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue