mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue