/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/patiencediff.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from __future__ import absolute_import
19
19
 
20
 
from bzrlib.lazy_import import lazy_import
 
20
from .lazy_import import lazy_import
21
21
lazy_import(globals(), """
22
22
import os
23
23
import sys
129
129
 
130
130
 
131
131
try:
132
 
    from bzrlib._patiencediff_c import (
 
132
    from ._patiencediff_c import (
133
133
        unique_lcs_c as unique_lcs,
134
134
        recurse_matches_c as recurse_matches,
135
135
        PatienceSequenceMatcher_c as PatienceSequenceMatcher
136
136
        )
137
137
except ImportError:
138
 
    from bzrlib._patiencediff_py import (
 
138
    from ._patiencediff_py import (
139
139
        unique_lcs_py as unique_lcs,
140
140
        recurse_matches_py as recurse_matches,
141
141
        PatienceSequenceMatcher_py as PatienceSequenceMatcher
157
157
    matcher = algorithms[opts.matcher]
158
158
 
159
159
    if len(args) != 2:
160
 
        print 'You must supply 2 filenames to diff'
 
160
        print('You must supply 2 filenames to diff')
161
161
        return -1
162
162
 
163
163
    for line in unified_diff_files(args[0], args[1], sequencematcher=matcher):