Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sibnavi committed Nov 18, 2024
1 parent d851353 commit 8f7dd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gendiff/formatters/stylish_format.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def dict_to_string(d, depth):
result = ""
indent_space = " " * (depth+1)
indent_space = " " * (depth + 1)
result += "{\n"
for key, value in d.items():
result += f"{indent_space} {key}: "
Expand Down
2 changes: 1 addition & 1 deletion gendiff/stuff/diff_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def diff_build(dict1, dict2, depth=0):
diff.append({'status': 'added', 'key': key, 'depth': depth,
'value': format_value(dict2[key])})
elif isinstance(dict1[key], dict) and isinstance(dict2[key], dict):
nested_diff = diff_build(dict1[key], dict2[key], depth+1)
nested_diff = diff_build(dict1[key], dict2[key], depth + 1)
diff.append({'status': 'nested', 'key': key, 'depth': depth,
'value': nested_diff})
elif dict1[key] == dict2[key]:
Expand Down

0 comments on commit 8f7dd86

Please # to comment.