summaryrefslogtreecommitdiff
path: root/Lib/threading.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 9763c629d8..706d5bbc5e 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -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()