Skip to content

Commit

Permalink
plain.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BobKelsoGIT committed Feb 2, 2024
1 parent 3ee2ab5 commit e57e20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gendiff/formatter/plain.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def get_path_and_values(item, path='') -> str:

if status == 'added':
return (f"{BEGINNING}'{current_path}' was added "
f"with value: '{new_value}'")
f"with value: {new_value}")
elif status == 'deleted':
return f"{BEGINNING}'{current_path}' was removed"
elif status == 'changed':
return (f"{BEGINNING}'{current_path}' was updated. "
f"From '{old_value}' to '{new_value}'")
f"From {old_value} to {new_value}")
elif status == 'nested':
child = item.get('children')
return make_plain(child, current_path)
Expand Down

0 comments on commit e57e20e

Please sign in to comment.