diff options
author | Aleksandar Veselinovic <aleksa@users.noreply.github.com> | 2014-04-21 15:54:26 -0700 |
---|---|---|
committer | Aleksandar Veselinovic <aleksa@users.noreply.github.com> | 2014-04-21 15:54:26 -0700 |
commit | 717945867d5a104cda1c062da6dbf47ef29dd66e (patch) | |
tree | 47f5c9b1eef2fa0b53000a47b1f315c3eaad8105 /src/etcd/lock.py | |
parent | b51a14c7352da1b89f6b145b943fd74e22c7b55e (diff) |
Removing "None" where 0 is to be used in Lock()
Diffstat (limited to 'src/etcd/lock.py')
-rw-r--r-- | src/etcd/lock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etcd/lock.py b/src/etcd/lock.py index c862243..9068576 100644 --- a/src/etcd/lock.py +++ b/src/etcd/lock.py @@ -9,7 +9,7 @@ class Lock(object): Lock object using etcd's lock module. """ - def __init__(self, client, key, ttl=None, value=None): + def __init__(self, client, key, ttl=0, value=None): """ Initialize a lock object. @@ -27,7 +27,7 @@ class Lock(object): if not key.startswith('/'): key = '/' + key self.key = key - self.ttl = ttl or 0 + self.ttl = ttl self.value = value self._index = None |