mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Fix simple errors in spawner test suite
This commit is contained in:
parent
1bfce6b44c
commit
80b8e9d46a
1 changed files with 2 additions and 2 deletions
|
|
@ -315,13 +315,13 @@ def prototype_diff(prototype1, prototype2, maxdepth=2):
|
|||
# this condition should not occur in a standard diff
|
||||
return (old, new, "UPDATE")
|
||||
elif depth < maxdepth and new_type == dict:
|
||||
all_keys = set(old.keys() + new.keys())
|
||||
all_keys = set(list(old.keys()) + list(new.keys()))
|
||||
return {key: _recursive_diff(old.get(key), new.get(key), depth=depth + 1)
|
||||
for key in all_keys}
|
||||
elif depth < maxdepth and is_iter(new):
|
||||
old_map = {part[0] if is_iter(part) else part: part for part in old}
|
||||
new_map = {part[0] if is_iter(part) else part: part for part in new}
|
||||
all_keys = set(old_map.keys() + new_map.keys())
|
||||
all_keys = set(list(old_map.keys()) + list(new_map.keys()))
|
||||
return {key: _recursive_diff(old_map.get(key), new_map.get(key), depth=depth + 1)
|
||||
for key in all_keys}
|
||||
elif old != new:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue