]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change to always call list.append with a single argument.
authorGuido van Rossum <guido@python.org>
Tue, 8 Oct 1996 14:06:17 +0000 (14:06 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 8 Oct 1996 14:06:17 +0000 (14:06 +0000)
Lib/fmt.py
Lib/lib-old/fmt.py
Lib/mutex.py

index 4a655e4c9079fb244d9f43b0b44a0ad0b2976855..f7c271885920492181569aca97a3d4b89112a592 100644 (file)
@@ -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
index 4a655e4c9079fb244d9f43b0b44a0ad0b2976855..f7c271885920492181569aca97a3d4b89112a592 100644 (file)
@@ -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
index b897863574d16cdbefcebd065c1df218b6e43e62..33509c762e1b4cdb6d21ae9df59a0aa5acb0f1d8 100644 (file)
@@ -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.