@staticmethod<EOL><INDENT>def unified(old, new):<DEDENT>
for diff in difflib.ndiff(old.splitlines(), new.splitlines()):<EOL><INDENT>if diff[<NUM_LIT:0>] == "<STR_LIT:U+0020>":<EOL><INDENT>yield diff<EOL><DEDENT>elif diff[<NUM_LIT:0>] == "<STR_LIT:?>":<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>yield termcolor.colored(diff, "<STR_LIT>" if diff[<NUM_LIT:0>] == "<STR_LIT:->" else "<STR_LIT>", attrs=["<STR_LIT>"])<EOL><DEDENT><DEDENT>
Returns a generator yielding a unified diff between `old` and `new`.