summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-30 23:44:28 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-30 23:44:28 -0700
commit3437642b26bfd5dea75c8bd86b7df8b74c99a89a (patch)
tree538c73b1dae403cfb4f1c287883bfe543e528165
parent03f802dfcb1339303e7c394fb77a07db2f2858da (diff)
downloadzake-3437642b26bfd5dea75c8bd86b7df8b74c99a89a.tar.gz
Use a more meaningful variable name
-rw-r--r--zake/fake_client.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/zake/fake_client.py b/zake/fake_client.py
index 660d061..79700d0 100644
--- a/zake/fake_client.py
+++ b/zake/fake_client.py
@@ -307,13 +307,15 @@ class FakeClient(object):
self._child_watches[path].append(watch)
if include_data:
children_with_data = []
- for (p, data) in six.iteritems(paths):
- children_with_data.append(clean_path(p[len(path):]), data)
+ for (child_path, data) in six.iteritems(paths):
+ child_path = clean_path(child_path[len(path):])
+ children_with_data.append((child_path, data))
return children_with_data
else:
children = []
- for p in list(six.iterkeys(paths)):
- children.append(clean_path(p[len(path):]))
+ for child_path in list(six.iterkeys(paths)):
+ child_path = clean_path(child_path[len(path):])
+ children.append(child_path)
return children
def get_children_async(self, path, watch=None, include_data=False):