/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/repository.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:
1176
1176
        # weave repositories refuse to store revisionids that are non-ascii.
1177
1177
        if revision_id is not None:
1178
1178
            # weaves require ascii revision ids.
1179
 
            if isinstance(revision_id, unicode):
 
1179
            if isinstance(revision_id, text_type):
1180
1180
                try:
1181
1181
                    revision_id.encode('ascii')
1182
1182
                except UnicodeEncodeError: