diff options
author | Guido van Rossum <guido@python.org> | 1993-05-24 14:16:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-24 14:16:22 (GMT) |
commit | d316607732aa70361d5793f6b301b70fab7ca367 (patch) | |
tree | d87376c3075042ebffdbf8bb13416f8055a5fd13 /Lib/persist.py | |
parent | b3f7258f14cb2f3e52236a4087ed82541a173e7b (diff) | |
download | cpython-d316607732aa70361d5793f6b301b70fab7ca367.zip cpython-d316607732aa70361d5793f6b301b70fab7ca367.tar.gz cpython-d316607732aa70361d5793f6b301b70fab7ca367.tar.bz2 |
* ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...".
* flp.py: support for frozen forms.
* Added string.find() which is like index but returns -1 if not found
Diffstat (limited to 'Lib/persist.py')
-rwxr-xr-x | Lib/persist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/persist.py b/Lib/persist.py index ae7d58b..8f0f164 100755 --- a/Lib/persist.py +++ b/Lib/persist.py @@ -170,14 +170,14 @@ def dumptype(x, typedict, types, stack): print 'def some_function(): pass' print FN, '[', `uid`, '] = type(some_function)' elif x == type(some_class): - print 'class some_class(): pass' + print 'class some_class: pass' print FN, '[', `uid`, '] = type(some_class)' elif x == type(some_instance): - print 'class another_class(): pass' + print 'class another_class: pass' print 'some_instance = another_class()' print FN, '[', `uid`, '] = type(some_instance)' elif x == type(some_instance.method): - print 'class yet_another_class():' + print 'class yet_another_class:' print ' def method(): pass' print 'another_instance = yet_another_class()' print FN, '[', `uid`, '] = type(another_instance.method)' |