Skip to content

Commit

Permalink
pythongh-113468: Remove the "_new_ suffix from class names in pydocfo…
Browse files Browse the repository at this point in the history
…dder (pythonGH-113469)
  • Loading branch information
serhiy-storchaka authored Dec 26, 2023
1 parent e87cadc commit 8a3d0e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Lib/test/pydocfodder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand All @@ -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."
Expand All @@ -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):
Expand Down

0 comments on commit 8a3d0e4

Please sign in to comment.