]> granicus.if.org Git - python/commitdiff
Fix use of list.append() with multiple arguments
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 28 Feb 2000 17:25:14 +0000 (17:25 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 28 Feb 2000 17:25:14 +0000 (17:25 +0000)
Demo/dns/dnslib.py

index bf4c6ccd0da084bdba5e92b18aa890e33166b6d7..4e1fb87b2c091fcf455a538cc4eeba442ebae4b1 100755 (executable)
@@ -101,7 +101,7 @@ class Packer:
                        label = list[j]
                        n = len(label)
                        if offset + len(buf) < 0x3FFF:
-                               index.append(keys[j], offset + len(buf))
+                               index.append( (keys[j], offset + len(buf)) )
                        else:
                                print 'dnslib.Packer.addname:',
                                print 'warning: pointer too big'