summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-31 01:38:34 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-31 01:38:34 -0700
commitc15379e1b3d311413c60f1ddbf102a9cb2746be0 (patch)
tree3a69ac29915324bcb6f43f93f3213652cda5a44c
parent3f9c32828c37279e7df56ea60b32d0eca68f169a (diff)
downloadzake-c15379e1b3d311413c60f1ddbf102a9cb2746be0.tar.gz
More better variable names
-rw-r--r--zake/fake_client.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/zake/fake_client.py b/zake/fake_client.py
index e2c313b..2a97dff 100644
--- a/zake/fake_client.py
+++ b/zake/fake_client.py
@@ -420,8 +420,8 @@ class _PartialClient(object):
if recursive:
paths = [path]
children = self.storage.get_children(path, only_direct=False)
- for p in six.iterkeys(children):
- paths.append(p)
+ for child_path in six.iterkeys(children):
+ paths.append(child_path)
else:
children = self.storage.get_children(path, only_direct=False)
if children:
@@ -431,24 +431,24 @@ class _PartialClient(object):
paths = [path]
paths = list(reversed(sorted(set(paths))))
with self.storage.transaction():
- for p in paths:
- self.storage.pop(p)
+ for path in paths:
+ self.storage.pop(path)
parents = []
- for p in paths:
- parents.extend(self.storage.get_parents(p))
+ for path in paths:
+ parents.extend(self.storage.get_parents(path))
parents = list(reversed(sorted(set(parents))))
- for p in parents:
+ for path in parents:
event = k_states.WatchedEvent(
type=k_states.EventType.DELETED,
state=k_states.KeeperState.CONNECTED,
- path=p)
- child_watches.append(([p], event))
- for p in paths:
+ path=path)
+ child_watches.append(([path], event))
+ for path in paths:
event = k_states.WatchedEvent(
type=k_states.EventType.DELETED,
state=k_states.KeeperState.CONNECTED,
- path=p)
- data_watches.append(([p], event))
+ path=path)
+ data_watches.append(([path], event))
return (True, data_watches, child_watches)
def set(self, path, value, version=-1):