summaryrefslogtreecommitdiff
path: root/kazoo/recipe/lock.py
diff options
context:
space:
mode:
Diffstat (limited to 'kazoo/recipe/lock.py')
-rw-r--r--kazoo/recipe/lock.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/kazoo/recipe/lock.py b/kazoo/recipe/lock.py
index 8ae8776..ec5d853 100644
--- a/kazoo/recipe/lock.py
+++ b/kazoo/recipe/lock.py
@@ -14,7 +14,6 @@ changes and re-act appropriately. In the event that a
and/or the lease has been lost.
"""
-
import sys
try:
from time import monotonic as now
@@ -24,16 +23,18 @@ import uuid
import six
+from kazoo.exceptions import (
+ CancelledError,
+ KazooException,
+ LockTimeout,
+ NoNodeError
+)
+from kazoo.protocol.states import KazooState
from kazoo.retry import (
+ ForceRetryError,
KazooRetry,
- RetryFailedError,
- ForceRetryError
+ RetryFailedError
)
-from kazoo.exceptions import CancelledError
-from kazoo.exceptions import KazooException
-from kazoo.exceptions import LockTimeout
-from kazoo.exceptions import NoNodeError
-from kazoo.protocol.states import KazooState
class _Watch(object):