/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/store/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
######################################################################
41
41
# stores
42
42
 
 
43
 
43
44
class StoreError(Exception):
44
45
    pass
45
46
 
67
68
 
68
69
    def add(self, f, fileid):
69
70
        """Add a file object f to the store accessible from the given fileid"""
70
 
        raise NotImplementedError('Children of Store must define their method of adding entries.')
 
71
        raise NotImplementedError(
 
72
            'Children of Store must define their method of adding entries.')
71
73
 
72
74
    def has_id(self, fileid, suffix=None):
73
75
        """Return True or false for the presence of fileid in the store.
213
215
        self._check_fileid(fileid)
214
216
        if suffixes:
215
217
            for suffix in suffixes:
216
 
                if not suffix in self._suffixes:
 
218
                if suffix not in self._suffixes:
217
219
                    raise ValueError("Unregistered suffix %r" % suffix)
218
220
                self._check_fileid(suffix.encode('utf-8'))
219
221
        else: