~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mdiff.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-09 05:36:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050409053619-24f52ffe914c9168be12c6cc
todo

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]