/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 bzrlib/index.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-08 04:35:01 UTC
  • mto: (4679.6.1 2.1-export-c-api)
  • mto: This revision was merged to the branch mainline in revision 4735.
  • Revision ID: john@arbash-meinel.com-20091008043501-8fgotm1vbt1zp4g6
Remove everything except for SimpleSet, and clean up its test suite.

This will be my first submission, since it doesn't directly depend on anything else.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    debug,
41
41
    errors,
42
42
    )
43
 
from bzrlib._static_tuple_c import StaticTuple
44
43
 
45
44
_HEADER_READV = (0, 200)
46
45
_OPTION_KEY_ELEMENTS = "key_elements="
103
102
 
104
103
    def _check_key(self, key):
105
104
        """Raise BadIndexKey if key is not a valid key for this index."""
106
 
        if type(key) not in (tuple, StaticTuple):
 
105
        if type(key) != tuple:
107
106
            raise errors.BadIndexKey(key)
108
107
        if self._key_length != len(key):
109
108
            raise errors.BadIndexKey(key)