~amirouche/mutation

9ef405fd09c8933b8052a80fa8c17016b0828897 — Amirouche 7 months ago fc5b963
ease the use of diff...

... difflib expect a string as filename even if empty.
1 files changed, 1 insertions(+), 1 deletions(-)

M mutation.py
M mutation.py => mutation.py +1 -1
@@ 379,7 379,7 @@ class MutateOperator(metaclass=Mutation):
                yield root, new


def diff(source, target, filename=None):
def diff(source, target, filename=''):
    lines = unified_diff(
        source.split("\n"), target.split("\n"), filename, filename, lineterm=""
    )