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

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
from ..bzr import (
38
38
    remote,
39
39
    )
40
 
from ..sixish import PY3
41
40
from ..bzr.smart import client, medium
42
41
 
43
42
 
472
471
    def list_dir(self, relpath):
473
472
        resp = self._call2(b'list_dir', self._remote_path(relpath))
474
473
        if resp[0] == b'names':
475
 
            return [name.decode('utf-8') if PY3 else name for name in resp[1:]]
 
474
            return [name.decode('utf-8') for name in resp[1:]]
476
475
        raise errors.UnexpectedSmartServerResponse(resp)
477
476
 
478
477
    def iter_files_recursive(self):
479
478
        resp = self._call2(b'iter_files_recursive', self._remote_path(''))
480
479
        if resp[0] == b'names':
481
 
            return [name.decode('utf-8') if PY3 else name for name in resp[1:]]
 
480
            return [name.decode('utf-8') for name in resp[1:]]
482
481
        raise errors.UnexpectedSmartServerResponse(resp)
483
482
 
484
483