Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/objgraph.py @ 559:683edb0c4463 legacy-trunk
New == syntax
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 01 Jan 1992 19:35:13 +0000 |
| parents | 12a64115a4ee |
| children | 6f2a6efd019e |
line wrap: on
line diff
--- a/Tools/scripts/objgraph.py Wed Jan 01 19:34:47 1992 +0000 +++ b/Tools/scripts/objgraph.py Wed Jan 01 19:35:13 1992 +0000 @@ -170,18 +170,18 @@ 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'))
