/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

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