From 3437642b26bfd5dea75c8bd86b7df8b74c99a89a Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 30 Aug 2014 23:44:28 -0700 Subject: Use a more meaningful variable name --- zake/fake_client.py | 10 ++++++---- 1 file 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): -- cgit v1.2.1