Protect attribute

This commit is contained in:
stephenmk 2023-04-23 00:34:46 -05:00
parent 08b180f442
commit fbaba0f499
No known key found for this signature in database
GPG key ID: B6DA730DB06235F1
2 changed files with 4 additions and 4 deletions

View file

@ -11,10 +11,10 @@ class JitenonTerminator(Terminator):
return None
def _glossary(self, entry):
if entry.entry_id in self.glossary_cache:
return self.glossary_cache[entry.entry_id]
if entry.entry_id in self._glossary_cache:
return self._glossary_cache[entry.entry_id]
glossary = make_glossary(entry)
self.glossary_cache[entry.entry_id] = glossary
self._glossary_cache[entry.entry_id] = glossary
return glossary
def _sequence(self, entry):

View file

@ -1,6 +1,6 @@
class Terminator:
def __init__(self):
self.glossary_cache = {}
self._glossary_cache = {}
def make_terms(self, entry):
terms = []