summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-31 01:01:06 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-31 01:01:06 -0700
commit72caf3f354ff82c1905c9adcc1a3d7ce39737ea1 (patch)
treedb4c2add8bce82d780f68d0b5f5d93aff23412a3
parentc3265f0d0d3af77f2f3c5f8e8a2be2038ae71f77 (diff)
downloadzake-72caf3f354ff82c1905c9adcc1a3d7ce39737ea1.tar.gz
Avoid creating a secondary list duplicate
-rw-r--r--zake/fake_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zake/fake_client.py b/zake/fake_client.py
index 8a8db37..5a2566e 100644
--- a/zake/fake_client.py
+++ b/zake/fake_client.py
@@ -311,7 +311,7 @@ class FakeClient(object):
return children_with_data
else:
children = []
- for child_path in list(six.iterkeys(paths)):
+ for child_path in six.iterkeys(paths):
child_path = clean_path(child_path[len(path):])
children.append(child_path)
return children