diff options
author | Guido van Rossum <guido@python.org> | 1996-10-08 14:06:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-10-08 14:06:17 (GMT) |
commit | b7f48e39c379e60473c220a586039aa56cea0b50 (patch) | |
tree | 3bad8e066d8767e3866430a041f9b25a009013bc | |
parent | 3c7739a75435df0fe5c86b2dec8de3d367212108 (diff) | |
download | cpython-b7f48e39c379e60473c220a586039aa56cea0b50.zip cpython-b7f48e39c379e60473c220a586039aa56cea0b50.tar.gz cpython-b7f48e39c379e60473c220a586039aa56cea0b50.tar.bz2 |
Change to always call list.append with a single argument.
-rw-r--r-- | Lib/fmt.py | 2 | ||||
-rw-r--r-- | Lib/lib-old/fmt.py | 2 | ||||
-rw-r--r-- | Lib/mutex.py | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -335,7 +335,7 @@ closechar = \ {'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''} def finalize(para): oldfont = curfont = 'r' - para.words.append('r', '', 0, 0, 0, 0) # temporary, deleted at end + para.words.append(('r', '', 0, 0, 0, 0)) # temporary, deleted at end for i in range(len(para.words)): fo, te, wi = para.words[i][:3] if fo <> None: curfont = fo diff --git a/Lib/lib-old/fmt.py b/Lib/lib-old/fmt.py index 4a655e4..f7c2718 100644 --- a/Lib/lib-old/fmt.py +++ b/Lib/lib-old/fmt.py @@ -335,7 +335,7 @@ closechar = \ {'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''} def finalize(para): oldfont = curfont = 'r' - para.words.append('r', '', 0, 0, 0, 0) # temporary, deleted at end + para.words.append(('r', '', 0, 0, 0, 0)) # temporary, deleted at end for i in range(len(para.words)): fo, te, wi = para.words[i][:3] if fo <> None: curfont = fo diff --git a/Lib/mutex.py b/Lib/mutex.py index b897863..33509c7 100644 --- a/Lib/mutex.py +++ b/Lib/mutex.py @@ -43,7 +43,7 @@ class mutex: if self.testandset(): function(argument) else: - self.queue.append(function, argument) + self.queue.append((function, argument)) # # Unlock a mutex. If the queue is not empty, call the next # function with its argument. |