/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/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-18 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 6928.
  • Revision ID: jelmer@jelmer.uk-20180218191840-2wezg20u9ffbfmed
Fix more bees, use with rather than try/finally for some files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
from .lock import LogicalLockResult
53
53
from .sixish import (
54
54
    BytesIO,
 
55
    text_type,
55
56
    viewitems,
56
57
    )
57
58
from .trace import mutter, mutter_callsite, note, is_quiet
788
789
        # FIXUP this and get_parent in a future branch format bump:
789
790
        # read and rewrite the file. RBC 20060125
790
791
        if url is not None:
791
 
            if isinstance(url, unicode):
 
792
            if isinstance(url, text_type):
792
793
                try:
793
794
                    url = url.encode('ascii')
794
795
                except UnicodeEncodeError: