comparison MoinMoin/util/diff_html.py @ 3123:5cb80bd604b4

refactored _() getText calls to match new api
author Radomir Dopieralski <moindev@sheep.art.pl>
date Wed, 27 Feb 2008 00:28:28 +0100
parents 8974561cc460
children dac434907110
comparison
equal deleted inserted replaced
3122:a1322262398a 3123:5cb80bd604b4
36 seqobj = difflib.SequenceMatcher(None, seq1, seq2) 36 seqobj = difflib.SequenceMatcher(None, seq1, seq2)
37 linematch = seqobj.get_matching_blocks() 37 linematch = seqobj.get_matching_blocks()
38 38
39 if len(seq1) == len(seq2) and linematch[0] == (0, 0, len(seq1)): 39 if len(seq1) == len(seq2) and linematch[0] == (0, 0, len(seq1)):
40 # No differences. 40 # No differences.
41 return " - " + _("No differences found!", formatted=False) 41 return " - " + _("No differences found!")
42 42
43 lastmatch = (0, 0) 43 lastmatch = (0, 0)
44 44
45 result = """ 45 result = """
46 <table class="diff"> 46 <table class="diff">