diff options
author | Guido van Rossum <guido@python.org> | 1996-10-08 14:06:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-10-08 14:06:35 (GMT) |
commit | 2715bb20dbd498947ed79d4a00d84ec4c5125800 (patch) | |
tree | 243bfeb63c50620ac87cad57f37e1b6278e0068a /Lib/traceback.py | |
parent | b7f48e39c379e60473c220a586039aa56cea0b50 (diff) | |
download | cpython-2715bb20dbd498947ed79d4a00d84ec4c5125800.zip cpython-2715bb20dbd498947ed79d4a00d84ec4c5125800.tar.gz cpython-2715bb20dbd498947ed79d4a00d84ec4c5125800.tar.bz2 |
Changes to always call list.append with a single argument.
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 9823100..7488f15 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -66,7 +66,7 @@ def extract_tb(tb, limit = None): line = linecache.getline(filename, lineno) if line: line = string.strip(line) else: line = None - list.append(filename, lineno, name, line) + list.append((filename, lineno, name, line)) tb = tb.tb_next n = n+1 return list @@ -176,7 +176,7 @@ def extract_stack(f=None, limit = None): line = linecache.getline(filename, lineno) if line: line = string.strip(line) else: line = None - list.append(filename, lineno, name, line) + list.append((filename, lineno, name, line)) f = f.f_back n = n+1 list.reverse() |