summaryrefslogtreecommitdiff
path: root/zake/fake_storage.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-30 23:20:29 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-30 23:20:29 -0700
commit19e32a2abb957cd3ca69052d966fc7a980e9c17c (patch)
tree183b45c09c43e18fd71acf453358e68f10f921f6 /zake/fake_storage.py
parent082e1485ded8ae24a39a5959958c77aa4006407d (diff)
downloadzake-19e32a2abb957cd3ca69052d966fc7a980e9c17c.tar.gz
Use the same parent iterkeys method to be consistent
Diffstat (limited to 'zake/fake_storage.py')
-rw-r--r--zake/fake_storage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zake/fake_storage.py b/zake/fake_storage.py
index 5de2a8f..e7ae88c 100644
--- a/zake/fake_storage.py
+++ b/zake/fake_storage.py
@@ -156,7 +156,8 @@ class FakeStorage(object):
child_watches = []
seen_paths = set()
for path in removals:
- for parent_path in self.get_parents(path):
+ parents = sorted(six.iterkeys(self.get_parents(path)))
+ for parent_path in parents:
if parent_path in seen_paths:
continue
event = k_states.WatchedEvent(