/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 breezy/bundle/commands.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from __future__ import absolute_import
25
25
 
26
 
from cStringIO import StringIO
27
 
 
28
 
from breezy.lazy_import import lazy_import
 
26
from ..lazy_import import lazy_import
29
27
lazy_import(globals(), """
30
28
from breezy import (
31
29
    branch,
38
36
from breezy.i18n import gettext
39
37
""")
40
38
 
41
 
from breezy.commands import Command
 
39
from ..commands import Command
 
40
from ..sixish import (
 
41
    BytesIO,
 
42
    )
42
43
 
43
44
 
44
45
class cmd_bundle_info(Command):
56
57
        term_encoding = osutils.get_terminal_encoding()
57
58
        bundle_info = read_mergeable_from_url(location)
58
59
        if isinstance(bundle_info, merge_directive.BaseMergeDirective):
59
 
            bundle_file = StringIO(bundle_info.get_raw_bundle())
 
60
            bundle_file = BytesIO(bundle_info.get_raw_bundle())
60
61
            bundle_info = read_bundle(bundle_file)
61
62
        else:
62
63
            if verbose: