/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/mdiff.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-09 06:00:35 UTC
  • Revision ID: mbp@sourcefrog.net-20050409060035-979035a2ca0edeab773254eb
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
def diff(a, b):
33
33
    d = difflib.SequenceMatcher(None, a, b)
34
 
    
35
 
    ## sys.stderr.write('  ~ real_quick_ratio: %.4f\n' % d.real_quick_ratio())
36
 
    
37
34
    for o, m, n, s, t in d.get_opcodes():
38
35
        if o == 'equal': continue
39
36
        # a[m:n] should be replaced by b[s:t]