summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-30 16:02:20 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-30 16:02:20 (GMT)
commit564f5507c38a0399d0a0e852df3f744a785a3d81 (patch)
tree8ad55dc33c6454465455b6646cf0a82ac5b19f3a
parentd404569b97acd4f55e3f3d0b59c50ed357eb123c (diff)
downloadcpython-564f5507c38a0399d0a0e852df3f744a785a3d81.zip
cpython-564f5507c38a0399d0a0e852df3f744a785a3d81.tar.gz
cpython-564f5507c38a0399d0a0e852df3f744a785a3d81.tar.bz2
y
New class syntax
-rw-r--r--Lib/lib-stdwin/TransParent.py4
-rwxr-xr-xLib/stdwin/TransParent.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-stdwin/TransParent.py b/Lib/lib-stdwin/TransParent.py
index 5ccebca..27e9bbd 100644
--- a/Lib/lib-stdwin/TransParent.py
+++ b/Lib/lib-stdwin/TransParent.py
@@ -5,7 +5,7 @@
Error = 'TransParent.Error' # Exception
-class ManageOneChild():
+class ManageOneChild:
#
# Upcalls shared with other single-child parents
#
@@ -23,7 +23,7 @@ class ManageOneChild():
raise Error, 'delchild: not my child'
self.child = 0
-class TransParent() = ManageOneChild():
+class TransParent(ManageOneChild):
#
# Calls from creator
# NB derived classes may add parameters to create()
diff --git a/Lib/stdwin/TransParent.py b/Lib/stdwin/TransParent.py
index 5ccebca..27e9bbd 100755
--- a/Lib/stdwin/TransParent.py
+++ b/Lib/stdwin/TransParent.py
@@ -5,7 +5,7 @@
Error = 'TransParent.Error' # Exception
-class ManageOneChild():
+class ManageOneChild:
#
# Upcalls shared with other single-child parents
#
@@ -23,7 +23,7 @@ class ManageOneChild():
raise Error, 'delchild: not my child'
self.child = 0
-class TransParent() = ManageOneChild():
+class TransParent(ManageOneChild):
#
# Calls from creator
# NB derived classes may add parameters to create()