diff --git a/gendiff/formatters/stylish_format.py b/gendiff/formatters/stylish_format.py index c418832..0e0984b 100644 --- a/gendiff/formatters/stylish_format.py +++ b/gendiff/formatters/stylish_format.py @@ -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}: " diff --git a/gendiff/stuff/diff_build.py b/gendiff/stuff/diff_build.py index 6a9cfbe..b42ede6 100644 --- a/gendiff/stuff/diff_build.py +++ b/gendiff/stuff/diff_build.py @@ -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]: