Change to always call list.append with a single argument.

This does not mean I still support this code!!!
This commit is contained in:
Guido van Rossum 1996-10-08 14:07:21 +00:00
parent 2715bb20db
commit 3159e1e1ef
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ def demo(): # Demonstration
col1 = [('a2', da), ('bbb2', da)]
col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)]
col3 = []
for i in range(1, 31): col3.append('xxx' + `i`, da)
for i in range(1, 31): col3.append(('xxx' + `i`, da))
data = [col0, col1, col2, col3]
w = open('tablewin.demo', data)
gwin.mainloop()

View File

@ -229,7 +229,7 @@ def demo(): # Demonstration
col1 = [('a2', da), ('bbb2', da)]
col2 = [('a3', da), ('b3', da), ('c3', da), ('d4', da), ('d5', da)]
col3 = []
for i in range(1, 31): col3.append('xxx' + `i`, da)
for i in range(1, 31): col3.append(('xxx' + `i`, da))
data = [col0, col1, col2, col3]
w = open('tablewin.demo', data)
gwin.mainloop()