diff options
author | Guido van Rossum <guido@python.org> | 2000-02-25 11:48:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-25 11:48:42 (GMT) |
commit | 2341794667e5420782fb92a2d3258ade862265eb (patch) | |
tree | 7cbf76551f67746810f48555c58d9c6a19045093 /Lib/asyncore.py | |
parent | b4624b94a86cf792dec99a05b13ebe7d774ee032 (diff) | |
download | cpython-2341794667e5420782fb92a2d3258ade862265eb.zip cpython-2341794667e5420782fb92a2d3258ade862265eb.tar.gz cpython-2341794667e5420782fb92a2d3258ade862265eb.tar.bz2 |
Fix a couple broken append() calls, spotted by Tim.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 8e11d76..e731784 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -102,7 +102,7 @@ def poll2 (timeout=0.0): if s.writable(): flags = flags | poll.POLLOUT if flags: - l.append (fd, flags) + l.append ((fd, flags)) r = poll.poll (l, timeout) for fd, flags in r: s = fd_map[fd] @@ -394,11 +394,11 @@ def compact_traceback (): t,v,tb = sys.exc_info() tbinfo = [] while 1: - tbinfo.append ( + tbinfo.append (( tb.tb_frame.f_code.co_filename, - tb.tb_frame.f_code.co_name, + tb.tb_frame.f_code.co_name, str(tb.tb_lineno) - ) + )) tb = tb.tb_next if not tb: break |