diff options
author | Guido van Rossum <guido@python.org> | 1998-10-08 15:24:48 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-08 15:24:48 +0000 |
commit | 14f9e889994d5ebe80d4edefdd2d0dca5e0c7c0f (patch) | |
tree | 344bc89e3462f09c7334998357f8076b6053ee66 /Demo/stdwin | |
parent | 61c7e22260c5cc1fc3ad061d139f60e217896e2e (diff) | |
download | cpython-14f9e889994d5ebe80d4edefdd2d0dca5e0c7c0f.tar.gz |
Fix multi-arg list.append() calls.
Diffstat (limited to 'Demo/stdwin')
-rwxr-xr-x | Demo/stdwin/ibrowse/ibrowse.py | 2 | ||||
-rwxr-xr-x | Demo/stdwin/ibrowse/ifile.py | 4 | ||||
-rwxr-xr-x | Demo/stdwin/ibrowse/itags.py | 2 | ||||
-rwxr-xr-x | Demo/stdwin/wdiff.py | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/Demo/stdwin/ibrowse/ibrowse.py b/Demo/stdwin/ibrowse/ibrowse.py index 41574adba7..eec5eb75a6 100755 --- a/Demo/stdwin/ibrowse/ibrowse.py +++ b/Demo/stdwin/ibrowse/ibrowse.py @@ -489,7 +489,7 @@ def imove(win, ref): # if win.file and win.node: lastnode = '(' + win.file + ')' + win.node - win.last.append(lastnode, win.textobj.getfocus()) + win.last.append((lastnode, win.textobj.getfocus())) win.file = file win.node = node win.header = header diff --git a/Demo/stdwin/ibrowse/ifile.py b/Demo/stdwin/ibrowse/ifile.py index 1ea880ea27..94471647ad 100755 --- a/Demo/stdwin/ibrowse/ifile.py +++ b/Demo/stdwin/ibrowse/ifile.py @@ -126,7 +126,7 @@ def analyze_node(text): topic, ref = text[a1:b1], text[a2:b2] if ref == ':': ref = topic - menu.append(topic, ref) + menu.append((topic, ref)) # # Get the footnotes # @@ -140,7 +140,7 @@ def analyze_node(text): topic, ref = text[a1:b1], text[a2:b2] if ref == ':': ref = topic - footnotes.append(topic, ref) + footnotes.append((topic, ref)) # return node, (prev, next, up), menu, footnotes # diff --git a/Demo/stdwin/ibrowse/itags.py b/Demo/stdwin/ibrowse/itags.py index f30f3fd5a1..7cddcfa149 100755 --- a/Demo/stdwin/ibrowse/itags.py +++ b/Demo/stdwin/ibrowse/itags.py @@ -94,7 +94,7 @@ def parse_indirlist(buf): (a,b), (a1,b1), (a2,b2) = match file = buf[a1:b1] offset = eval(buf[a2:b2]) # XXX What if this gets overflow? - list.append(file, offset) + list.append((file, offset)) i = b return list diff --git a/Demo/stdwin/wdiff.py b/Demo/stdwin/wdiff.py index b8c8da3731..50ca0325d9 100755 --- a/Demo/stdwin/wdiff.py +++ b/Demo/stdwin/wdiff.py @@ -95,7 +95,7 @@ def diffdata(a, b, flags): # Compute directory differences. if x in ['./', '../']: pass elif x not in b_list: - a_only.append(x, a_only_action) + a_only.append((x, a_only_action)) else: ax = os.path.join(a, x) bx = os.path.join(b, x) @@ -110,15 +110,15 @@ def diffdata(a, b, flags): # Compute directory differences. except (RuntimeError, os.error): same = 0 if same: - ab_same.append(x, ab_same_action) + ab_same.append((x, ab_same_action)) else: - ab_diff.append(x, ab_diff_action) + ab_diff.append((x, ab_diff_action)) # for x in b_list: if x in ['./', '../']: pass elif x not in a_list: - b_only.append(x, b_only_action) + b_only.append((x, b_only_action)) # return data |