/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/plugins/git/tree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-21 23:59:28 UTC
  • mfrom: (6973.6.4 python3-e)
  • Revision ID: jelmer@jelmer.uk-20180621235928-f7z0vf0lxc6ieo9e
Merge lp:~jelmer/brz/python3-e

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    CURRENT_REVISION,
60
60
    NULL_REVISION,
61
61
    )
 
62
from ...sixish import text_type
62
63
 
63
64
from .mapping import (
64
65
    mode_is_executable,
1034
1035
            posixpath.basename(path).strip("/"), parent_id)
1035
1036
 
1036
1037
    def _get_file_ie(self, name, path, value, parent_id):
1037
 
        if type(name) is not unicode:
 
1038
        if not isinstance(name, text_type):
1038
1039
            raise TypeError(name)
1039
 
        if type(path) is not unicode:
 
1040
        if not isinstance(path, text_type):
1040
1041
            raise TypeError(path)
1041
1042
        if not isinstance(value, tuple) or len(value) != 10:
1042
1043
            raise TypeError(value)