/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/weave_fmt/repository.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:
23
23
from __future__ import absolute_import
24
24
 
25
25
import gzip
 
26
from io import BytesIO
26
27
import os
27
28
 
28
29
from ...lazy_import import lazy_import
58
59
from ...bzr.repository import (
59
60
    RepositoryFormatMetaDir,
60
61
    )
61
 
from ...sixish import (
62
 
    BytesIO,
63
 
    text_type,
64
 
    )
65
62
from .store.text import TextStore
66
63
from ...bzr.versionedfile import (
67
64
    AbsentContentFactory,
88
85
        return xml5.serializer_v5
89
86
 
90
87
    def _escape(self, file_or_path):
91
 
        if not isinstance(file_or_path, (str, text_type)):
 
88
        if not isinstance(file_or_path, str):
92
89
            file_or_path = '/'.join(file_or_path)
93
90
        if file_or_path == '':
94
91
            return u''