diff options
author | Aleksandar Veselinovic <aleksa@users.noreply.github.com> | 2014-04-21 15:59:50 -0700 |
---|---|---|
committer | Aleksandar Veselinovic <aleksa@users.noreply.github.com> | 2014-04-21 15:59:50 -0700 |
commit | 25a0d8195a2f351918bee4a07357b06a9e81ccaf (patch) | |
tree | 4eeb292c4748c11439d667de2814a006e96394eb /src | |
parent | 717945867d5a104cda1c062da6dbf47ef29dd66e (diff) |
Replacing iterative str lookup with set lookup
Diffstat (limited to 'src')
-rw-r--r-- | src/etcd/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etcd/client.py b/src/etcd/client.py index 58d49de..f73c667 100644 --- a/src/etcd/client.py +++ b/src/etcd/client.py @@ -23,9 +23,9 @@ class Client(object): _MPUT = 'PUT' _MPOST = 'POST' _MDELETE = 'DELETE' - _comparison_conditions = ['prevValue', 'prevIndex', 'prevExist'] - _read_options = ['recursive', 'wait', 'waitIndex', 'sorted', 'consistent'] - _del_conditions = ['prevValue', 'prevIndex'] + _comparison_conditions = set(('prevValue', 'prevIndex', 'prevExist')) + _read_options = set(('recursive', 'wait', 'waitIndex', 'sorted', 'consistent')) + _del_conditions = set(('prevValue', 'prevIndex')) def __init__( self, host='127.0.0.1', |