code: def trim(self, prefixes):
          "Prunes any keys beginning with the specified the specified prefixes."
          _prefixes, prefixes = set(map(lambda k:self._prepare_key(k), prefixes)), list()
          for t in lookahead(sorted(_prefixes)):
              if t[1] is not None:
                  if t[0] == commonprefix(t):
                      continue
              prefixes.append(t[0])
          length = 0
          for prefix in prefixes:
              length += self._trim(prefix)
          return lengtf trim(self, prefixes):
          "Prunes any keys beginning with the specified the specified prefixes."
          _prefixes, prefixes = set(map(lambda k:self._prepare_key(k), prefixes)), list()
          for t in lookahead(sorted(_prefixes)):
              if t[1] is not None:
                  if t[0] == commonprefix(t):
                      continue
              prefixes.append(t[0])
          length = 0
          for prefix in prefixes:
              length += self._trim(prefix)
          return length
docs: Prunes any keys beginning with the specified the specified prefixes.