Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 564f550

Browse files
committed
y
New class syntax
1 parent d404569 commit 564f550

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/lib-stdwin/TransParent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Error = 'TransParent.Error' # Exception
77

8-
class ManageOneChild():
8+
class ManageOneChild:
99
#
1010
# Upcalls shared with other single-child parents
1111
#
@@ -23,7 +23,7 @@ def delchild(self, child):
2323
raise Error, 'delchild: not my child'
2424
self.child = 0
2525

26-
class TransParent() = ManageOneChild():
26+
class TransParent(ManageOneChild):
2727
#
2828
# Calls from creator
2929
# NB derived classes may add parameters to create()

Lib/stdwin/TransParent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Error = 'TransParent.Error' # Exception
77

8-
class ManageOneChild():
8+
class ManageOneChild:
99
#
1010
# Upcalls shared with other single-child parents
1111
#
@@ -23,7 +23,7 @@ def delchild(self, child):
2323
raise Error, 'delchild: not my child'
2424
self.child = 0
2525

26-
class TransParent() = ManageOneChild():
26+
class TransParent(ManageOneChild):
2727
#
2828
# Calls from creator
2929
# NB derived classes may add parameters to create()

0 commit comments

Comments
 (0)