def simple_merge(txt1, txt2):
 differ = difflib.Differ(charjunk=difflib.IS_CHARACTER_JUNK)
 diff = differ.compare(txt1.splitlines(1), txt2.splitlines(1))
 content = u''.join([l[2:] for l in diff])
 return content

def simple_merge ( txt1 , txt2 ) : differ = difflib . Differ ( charjunk = difflib . IS_CHARACTER_JUNK ) diff = differ . compare ( txt1 . splitlines ( 1 ) , txt2 . splitlines ( 1 ) ) content = u'' . join ( [ l [ 2 : ] for l in diff ] ) return content
merges two texts .