diff options
author | Ben Bangert <ben@groovie.org> | 2017-06-03 19:55:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-03 19:55:44 -0700 |
commit | 95b2185c0741ed2616def1eefc2bbfd0d4d180ab (patch) | |
tree | 9c7627e3d93ba87d09c407af6a0a56b3110c0240 | |
parent | bd1ee41fd1d6996a22ca719e74463f16865af259 (diff) | |
parent | 88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d (diff) | |
download | kazoo-95b2185c0741ed2616def1eefc2bbfd0d4d180ab.tar.gz |
Merge pull request #449 from bsanders/master
Add missed parens to function call.
-rw-r--r-- | kazoo/recipe/queue.py | 2 |
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( |