/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/upstream_import.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:
34
34
from .errors import (BzrError, NoSuchFile, BzrCommandError, NotBranchError)
35
35
from .osutils import (pathjoin, isdir, file_iterator, basename,
36
36
                      file_kind, splitpath)
37
 
from .sixish import (
38
 
    text_type,
39
 
    )
40
37
from .trace import warning
41
38
from .transform import resolve_conflicts, cook_conflicts
42
39
from .transport import get_transport
258
255
        # interpret relative to fs encoding, which would match native
259
256
        # behaviour better.
260
257
        relative_path = member.name
261
 
        if not isinstance(relative_path, text_type):
 
258
        if not isinstance(relative_path, str):
262
259
            relative_path = relative_path.decode('utf-8')
263
260
        if prefix is not None:
264
261
            relative_path = relative_path[len(prefix) + 1:]