# HG changeset patch # User Sylvain Thénault # Date 1264582673 -3600 # Node ID bd8480824e0bc4e9851b79e71e4cb6dc2b2c40c7 # Parent 0285c1fa1459754777455109e54ced84ce76f5cd ensure we get a correct key diff -r 0285c1fa1459 -r bd8480824e0b rtags.py --- a/rtags.py Wed Jan 27 09:57:16 2010 +0100 +++ b/rtags.py Wed Jan 27 09:57:53 2010 +0100 @@ -104,6 +104,7 @@ self.tag_relation(key, *args, **kwargs) def tag_relation(self, key, tag): + assert len(key) == 4, 'bad key: %s' % list(key) if self._allowed_values is not None: assert tag in self._allowed_values, \ '%r is not an allowed tag (should be in %s)' % (