]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
New class syntax.
authorGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:05:52 +0000 (13:05 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:05:52 +0000 (13:05 +0000)
Lib/persist.py

index e503d95ecf8f6511025b4c0bbace799637358e8e..065a3eaef3e94c3fed6a36824b7635cbe80910f7 100755 (executable)
@@ -148,7 +148,7 @@ def dumpstring(x, typedict, types, stack):
 # Function to dump type objects
 #
 typeswitch = {}
-class some_class():
+class some_class:
        def method(self): pass
 some_instance = some_class()
 #