/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/mutabletree.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:
29
29
    tree,
30
30
    )
31
31
 
32
 
from .sixish import (
33
 
    text_type,
34
 
    )
35
32
 
36
33
 
37
34
class BadReferenceTarget(errors.InternalBzrError):
101
98
 
102
99
        TODO: Perhaps callback with the ids and paths as they're added.
103
100
        """
104
 
        if isinstance(files, (str, text_type)):
 
101
        if isinstance(files, str):
105
102
            # XXX: Passing a single string is inconsistent and should be
106
103
            # deprecated.
107
104
            if not (ids is None or isinstance(ids, bytes)):
108
105
                raise AssertionError()
109
 
            if not (kinds is None or isinstance(kinds, (str, text_type))):
 
106
            if not (kinds is None or isinstance(kinds, str)):
110
107
                raise AssertionError()
111
108
            files = [files]
112
109
            if ids is not None: