/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/filters/__init__.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:
40
40
 
41
41
from __future__ import absolute_import
42
42
 
43
 
from cStringIO import StringIO
44
 
from bzrlib.lazy_import import lazy_import
 
43
from ..lazy_import import lazy_import
45
44
lazy_import(globals(), """
46
 
from bzrlib import (
 
45
from breezy import (
47
46
    config,
48
47
    errors,
49
48
    osutils,
50
49
    registry,
51
50
    )
52
51
""")
53
 
from bzrlib.symbol_versioning import (
 
52
from ..sixish import (
 
53
    BytesIO,
 
54
    )
 
55
from ..symbol_versioning import (
54
56
    deprecated_function,
55
57
    deprecated_in,
56
58
    )
143
145
        for filter in filters:
144
146
            if filter.reader is not None:
145
147
                chunks = filter.reader(chunks)
146
 
        return StringIO(''.join(chunks))
 
148
        return BytesIO(b''.join(chunks))
147
149
    else:
148
150
        return f
149
151
 
273
275
    return original
274
276
 
275
277
 
276
 
filter_stacks_registry.register_lazy('eol', 'bzrlib.filters.eol', 'eol_lookup')
 
278
filter_stacks_registry.register_lazy('eol', 'breezy.filters.eol', 'eol_lookup')