Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2341794

Browse files
committed
Fix a couple broken append() calls, spotted by Tim.
1 parent b4624b9 commit 2341794

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/asyncore.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def poll2 (timeout=0.0):
102102
if s.writable():
103103
flags = flags | poll.POLLOUT
104104
if flags:
105-
l.append (fd, flags)
105+
l.append ((fd, flags))
106106
r = poll.poll (l, timeout)
107107
for fd, flags in r:
108108
s = fd_map[fd]
@@ -394,11 +394,11 @@ def compact_traceback ():
394394
t,v,tb = sys.exc_info()
395395
tbinfo = []
396396
while 1:
397-
tbinfo.append (
397+
tbinfo.append ((
398398
tb.tb_frame.f_code.co_filename,
399-
tb.tb_frame.f_code.co_name,
399+
tb.tb_frame.f_code.co_name,
400400
str(tb.tb_lineno)
401-
)
401+
))
402402
tb = tb.tb_next
403403
if not tb:
404404
break

0 commit comments

Comments
 (0)