27 _compress_threshold = 80
31 _use_compressed_threshold = 1.1
40 def add(self, text, html=False):
44 if key
not in self.
_cache_cache:
46 return self.
_cache_cache[key]
49 return tuple(self.
_encode_encode(text, html)
for text, html
in self.
_cache_cache)
def add(self, text, html=False)
def _encode(self, text, html=False)
float _use_compressed_threshold