summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2017-06-03 19:55:44 -0700
committerGitHub <noreply@github.com>2017-06-03 19:55:44 -0700
commit95b2185c0741ed2616def1eefc2bbfd0d4d180ab (patch)
tree9c7627e3d93ba87d09c407af6a0a56b3110c0240
parentbd1ee41fd1d6996a22ca719e74463f16865af259 (diff)
parent88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d (diff)
downloadkazoo-95b2185c0741ed2616def1eefc2bbfd0d4d180ab.tar.gz
Merge pull request #449 from bsanders/master
Add missed parens to function call.
-rw-r--r--kazoo/recipe/queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kazoo/recipe/queue.py b/kazoo/recipe/queue.py
index 3db465c..df46422 100644
--- a/kazoo/recipe/queue.py
+++ b/kazoo/recipe/queue.py
@@ -271,7 +271,7 @@ class LockingQueue(BaseQueue):
:rtype: bool
"""
- if self.processing_element is not None and self.holds_lock:
+ if self.processing_element is not None and self.holds_lock():
id_, value = self.processing_element
with self.client.transaction() as transaction:
transaction.delete("{path}/{id}".format(