Commit b7f48e39 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 3c7739a7
......@@ -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
......
......@@ -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
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment