summaryrefslogtreecommitdiffstats
path: root/Lib/dump.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/dump.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/dump.py')
-rw-r--r--Lib/dump.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/dump.py b/Lib/dump.py
index cecc275..ec895b7 100644
--- a/Lib/dump.py
+++ b/Lib/dump.py
@@ -31,7 +31,7 @@ def dumpsymtab(dict):
def dumpvar(name, x):
import sys
t = type(x)
- if t = type({}):
+ if t == type({}):
print name, '= {}'
for key in x.keys():
item = x[key]
@@ -42,7 +42,7 @@ def dumpvar(name, x):
if not printable(x):
print '#',
print name, '=', `x`
- elif t = type(sys):
+ elif t == type(sys):
print 'import', name, '#', x
else:
print '#', name, '=', x
@@ -58,6 +58,6 @@ def printable(x):
if not printable(item):
return 0
return 1
- if x = {}:
+ if x == {}:
return 1
return 0