Skip to content

Commit bf7f29b

Browse files
committed
Fixup bugs and add testing
1 parent 8559796 commit bf7f29b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/objdictgen/printing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,20 +349,24 @@ def _pprint(text: str, prefix: str = ' '):
349349
yield f"<< {ppath}only in {Fore.MAGENTA}LEFT{rst}"
350350
if show:
351351
yield from _pprint(change.t1, " < ")
352+
352353
elif 'added' in chtype:
353354
yield f" >> {ppath}only in {Fore.BLUE}RIGHT{rst}"
354355
if show:
355356
yield from _pprint(change.t2, " > ")
357+
356358
elif 'changed' in chtype:
357359
yield f"<< - >> {ppath}changed value from '{Fore.GREEN}{change.t1}{rst}' to '{Fore.GREEN}{change.t2}{rst}'"
358360
if show:
359361
yield from _pprint(change.t1, " < ")
360362
yield from _pprint(change.t2, " > ")
363+
361364
elif 'type_changes' in chtype:
362365
yield f"<< - >> {ppath}changed type and value from '{Fore.GREEN}{change.t1}{rst}' to '{Fore.GREEN}{change.t2}{rst}'"
363366
if show:
364367
yield from _pprint(change.t1, " < ")
365368
yield from _pprint(change.t2, " > ")
369+
366370
elif 'diff' in chtype:
367371
start = path[0:2]
368372
if start == ' ':

0 commit comments

Comments
 (0)