/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/transport/remote.py

  • Committer: Martin
  • Date: 2017-05-21 18:16:32 UTC
  • mto: (6621.2.22 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: gzlist@googlemail.com-20170521181632-kll0wqnsq8pipfpj
Use BytesIO or StringIO from bzrlib.sixish

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
__all__ = ['RemoteTransport', 'RemoteTCPTransport', 'RemoteSSHTransport']
26
26
 
27
 
from cStringIO import StringIO
28
 
 
29
27
from bzrlib import (
30
28
    config,
31
29
    debug,
35
33
    transport,
36
34
    urlutils,
37
35
    )
 
36
from bzrlib.sixish import (
 
37
    BytesIO,
 
38
    )
38
39
from bzrlib.smart import client, medium
39
40
 
40
41
 
217
218
 
218
219
        :see: Transport.get_bytes()/get_file()
219
220
        """
220
 
        return StringIO(self.get_bytes(relpath))
 
221
        return BytesIO(self.get_bytes(relpath))
221
222
 
222
223
    def get_bytes(self, relpath):
223
224
        remote = self._remote_path(relpath)