Beispiel #1
0
 def _to_keys(self, key):
     # type: (str) -> Sequence[str]
     prefix = self.prefix
     if prefix:
         pkey = prefix + key if not key.startswith(prefix) else key
         return match_case(pkey, prefix), key
     return key,
Beispiel #2
0
 def _to_keys(self, key):
     prefix = self.prefix
     if prefix:
         pkey = prefix + key if not key.startswith(prefix) else key
         return match_case(pkey, prefix), self._key(key)
     return self._key(key),