comparison MoinMoin/util/diff_text.py @ 6100:e9ef58bdad15

use difflib from stdlib
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 00:20:17 +0200
parents 01f05e74aa9c
children
comparison
equal deleted inserted replaced
6099:1736bc375fc4 6100:e9ef58bdad15
3 MoinMoin - simple text diff (uses difflib) 3 MoinMoin - simple text diff (uses difflib)
4 4
5 @copyright: 2006 MoinMoin:ThomasWaldmann 5 @copyright: 2006 MoinMoin:ThomasWaldmann
6 @license: GNU GPL, see COPYING for details. 6 @license: GNU GPL, see COPYING for details.
7 """ 7 """
8 from MoinMoin.support import difflib 8 import difflib
9 9
10 def diff(oldlines, newlines, **kw): 10 def diff(oldlines, newlines, **kw):
11 """ 11 """
12 Find changes between oldlines and newlines. 12 Find changes between oldlines and newlines.
13 13