/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/view_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2017-10-14 14:33:57 UTC
  • mto: (491.6.1 breezy)
  • mto: This revision was merged to the branch mainline in revision 494.
  • Revision ID: jelmer@jelmer.uk-20171014143357-nra2qyl7ecl17ucs
s/bzrlib/breezy/

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import os
21
21
 
22
 
from bzrlib.errors import (
 
22
from breezy.errors import (
23
23
    BinaryFile,
24
24
    NoSuchId,
25
25
    NoSuchRevision,
26
26
    )
27
 
import bzrlib.textfile
28
 
import bzrlib.osutils
 
27
import breezy.textfile
 
28
import breezy.osutils
29
29
 
30
30
from paste.httpexceptions import (
31
31
    HTTPBadRequest,
62
62
            encoding = 'iso-8859-15'
63
63
            file_text = file_text.decode(encoding)
64
64
 
65
 
        file_lines = bzrlib.osutils.split_lines(file_text)
66
 
        # This can throw bzrlib.errors.BinaryFile (which our caller catches).
67
 
        bzrlib.textfile.check_text_lines(file_lines)
 
65
        file_lines = breezy.osutils.split_lines(file_text)
 
66
        # This can throw breezy.errors.BinaryFile (which our caller catches).
 
67
        breezy.textfile.check_text_lines(file_lines)
68
68
        
69
69
        if highlight is not None:
70
70
            hl_lines = highlight(file_name, file_text, encoding)