diff options
author | Guido van Rossum <guido@python.org> | 1998-10-08 15:24:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-08 15:24:48 (GMT) |
commit | 9c2c1e88a352c947eac2c9eb8b91908f1b5abaad (patch) | |
tree | 1409948b07587c6bdecd570b5e41e2eb36d86da1 /Tools/scripts/ifdef.py | |
parent | 215193bd93f898b21ed75befd412095d99dee601 (diff) | |
download | cpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.zip cpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.tar.gz cpython-9c2c1e88a352c947eac2c9eb8b91908f1b5abaad.tar.bz2 |
Fix multi-arg list.append() calls.
Diffstat (limited to 'Tools/scripts/ifdef.py')
-rwxr-xr-x | Tools/scripts/ifdef.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/ifdef.py b/Tools/scripts/ifdef.py index ff64425..939bea9 100755 --- a/Tools/scripts/ifdef.py +++ b/Tools/scripts/ifdef.py @@ -79,16 +79,16 @@ def process(fpi, fpo): ko = 0 word = words[1] if word in defs: - stack.append(ok, ko, word) + stack.append((ok, ko, word)) if not ko: ok = 0 elif word in undefs: - stack.append(ok, not ko, word) + stack.append((ok, not ko, word)) if ko: ok = 0 else: - stack.append(ok, -1, word) + stack.append((ok, -1, word)) if ok: fpo.write(line) elif keyword == 'if': - stack.append(ok, -1, '') + stack.append((ok, -1, '')) if ok: fpo.write(line) elif keyword == 'else' and stack: s_ok, s_ko, s_word = stack[-1] |