Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7f48e3

Browse files
committed
Change to always call list.append with a single argument.
1 parent 3c7739a commit b7f48e3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/fmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def flush(self):
335335
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
336336
def finalize(para):
337337
oldfont = curfont = 'r'
338-
para.words.append('r', '', 0, 0, 0, 0) # temporary, deleted at end
338+
para.words.append(('r', '', 0, 0, 0, 0)) # temporary, deleted at end
339339
for i in range(len(para.words)):
340340
fo, te, wi = para.words[i][:3]
341341
if fo <> None: curfont = fo

Lib/lib-old/fmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def flush(self):
335335
{'b':'*', 'i':'_', 'u':'_', 'q':'\'', 'B':'*', 'I':'_', 'U':'_', 'Q':'\''}
336336
def finalize(para):
337337
oldfont = curfont = 'r'
338-
para.words.append('r', '', 0, 0, 0, 0) # temporary, deleted at end
338+
para.words.append(('r', '', 0, 0, 0, 0)) # temporary, deleted at end
339339
for i in range(len(para.words)):
340340
fo, te, wi = para.words[i][:3]
341341
if fo <> None: curfont = fo

Lib/mutex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def lock(self, function, argument):
4343
if self.testandset():
4444
function(argument)
4545
else:
46-
self.queue.append(function, argument)
46+
self.queue.append((function, argument))
4747
#
4848
# Unlock a mutex. If the queue is not empty, call the next
4949
# function with its argument.

0 commit comments

Comments
 (0)