mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Change to always call list.append with a single argument.
This commit is contained in:
parent
3c7739a754
commit
b7f48e39c3
3 changed files with 3 additions and 3 deletions
|
@ -335,7 +335,7 @@ closechar = \
|
||||||
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
|
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
|
||||||
def finalize(para):
|
def finalize(para):
|
||||||
oldfont = curfont = 'r'
|
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)):
|
for i in range(len(para.words)):
|
||||||
fo, te, wi = para.words[i][:3]
|
fo, te, wi = para.words[i][:3]
|
||||||
if fo <> None: curfont = fo
|
if fo <> None: curfont = fo
|
||||||
|
|
|
@ -335,7 +335,7 @@ closechar = \
|
||||||
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
|
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
|
||||||
def finalize(para):
|
def finalize(para):
|
||||||
oldfont = curfont = 'r'
|
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)):
|
for i in range(len(para.words)):
|
||||||
fo, te, wi = para.words[i][:3]
|
fo, te, wi = para.words[i][:3]
|
||||||
if fo <> None: curfont = fo
|
if fo <> None: curfont = fo
|
||||||
|
|
|
@ -43,7 +43,7 @@ class mutex:
|
||||||
if self.testandset():
|
if self.testandset():
|
||||||
function(argument)
|
function(argument)
|
||||||
else:
|
else:
|
||||||
self.queue.append(function, argument)
|
self.queue.append((function, argument))
|
||||||
#
|
#
|
||||||
# Unlock a mutex. If the queue is not empty, call the next
|
# Unlock a mutex. If the queue is not empty, call the next
|
||||||
# function with its argument.
|
# function with its argument.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue