mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Convert a pile of obvious "yes/no" functions to return bool.
This commit is contained in:
parent
2f486b7fa6
commit
bc0e910826
34 changed files with 117 additions and 122 deletions
|
@ -174,9 +174,9 @@ class _Condition(_Verbose):
|
|||
def _is_owned(self):
|
||||
if self.__lock.acquire(0):
|
||||
self.__lock.release()
|
||||
return 0
|
||||
return False
|
||||
else:
|
||||
return 1
|
||||
return True
|
||||
|
||||
def wait(self, timeout=None):
|
||||
me = currentThread()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue