diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/persist.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/persist.py')
-rwxr-xr-x | Lib/persist.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/persist.py b/Lib/persist.py index 065a3ea..52cc6fb 100755 --- a/Lib/persist.py +++ b/Lib/persist.py @@ -160,23 +160,23 @@ def dumptype(x, typedict, types, stack): typedict[xrepr] = uid if typeswitch.has_key(xrepr): print FN, '[', `uid`, '] =', typeswitch[xrepr] - elif x = type(sys): + elif x == type(sys): print 'import sys' print FN, '[', `uid`, '] = type(sys)' - elif x = type(sys.stderr): + elif x == type(sys.stderr): print 'import sys' print FN, '[', `uid`, '] = type(sys.stderr)' - elif x = type(dumptype): + elif x == type(dumptype): print 'def some_function(): pass' print FN, '[', `uid`, '] = type(some_function)' - elif x = type(some_class): + elif x == type(some_class): print 'class some_class(): pass' print FN, '[', `uid`, '] = type(some_class)' - elif x = type(some_instance): + elif x == type(some_instance): print 'class another_class(): pass' print 'some_instance = another_class()' print FN, '[', `uid`, '] = type(some_instance)' - elif x = type(some_instance.method): + elif x == type(some_instance.method): print 'class yet_another_class():' print ' def method(): pass' print 'another_instance = yet_another_class()' |