summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/objgraph.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 /Tools/scripts/objgraph.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Tools/scripts/objgraph.py')
-rwxr-xr-xTools/scripts/objgraph.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/scripts/objgraph.py b/Tools/scripts/objgraph.py
index b45bba2..a21797d 100755
--- a/Tools/scripts/objgraph.py
+++ b/Tools/scripts/objgraph.py
@@ -170,18 +170,18 @@ def main():
return 1
optu = optc = optd = 0
for opt, void in optlist:
- if opt = '-u':
+ if opt == '-u':
optu = 1
- elif opt = '-c':
+ elif opt == '-c':
optc = 1
- elif opt = '-d':
+ elif opt == '-d':
optd = 1
- if optu = optc = optd = 0:
+ if optu == optc == optd == 0:
optu = optc = optd = 1
if not args:
args = ['-']
for file in args:
- if file = '-':
+ if file == '-':
readinput(sys.stdin)
else:
readinput(open(file, 'r'))