/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/git/workingtree.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:
73
73
    BadReferenceTarget,
74
74
    MutableTree,
75
75
    )
76
 
from ..sixish import text_type
77
76
 
78
77
 
79
78
from .dir import (
534
533
                              recurse_nested=False):
535
534
        if from_dir is None:
536
535
            from_dir = u""
537
 
        if not isinstance(from_dir, text_type):
 
536
        if not isinstance(from_dir, str):
538
537
            raise TypeError(from_dir)
539
538
        encoded_from_dir = self.abspath(from_dir).encode(osutils._fs_enc)
540
539
        for (dirpath, dirnames, filenames) in os.walk(encoded_from_dir):