]> granicus.if.org Git - python/commitdiff
Fix a couple broken append() calls, spotted by Tim.
authorGuido van Rossum <guido@python.org>
Fri, 25 Feb 2000 11:48:42 +0000 (11:48 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 25 Feb 2000 11:48:42 +0000 (11:48 +0000)
Lib/asyncore.py

index 8e11d764a42afaddc29304eefdbc4688ca286e85..e731784f61a50ff5223cbc68d2aff90ece158aed 100644 (file)
@@ -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