summaryrefslogtreecommitdiffstats
path: root/Lib/persist.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/persist.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/persist.py')
-rwxr-xr-xLib/persist.py12
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()'