/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: John Arbash Meinel
  • Date: 2005-11-08 18:36:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1727.
  • Revision ID: john@arbash-meinel.com-20051108183626-71f8414338043265
Updating unified_diff to take a factory, using the new diff algorithm in the code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
# FIXME: doesn't work properly on files without trailing newlines
29
29
 
30
 
import difflib
 
30
from difflib import SequenceMatcher
31
31
import struct
32
32
import sys
33
33
import unittest
77
77
    (al, ap) = linesplit(a)
78
78
    (bl, bp) = linesplit(b)
79
79
 
80
 
    d = difflib.SequenceMatcher(None, al, bl)
 
80
    d = SequenceMatcher(None, al, bl)
81
81
    
82
82
    ## sys.stderr.write('  ~ real_quick_ratio: %.4f\n' % d.real_quick_ratio())
83
83