Protect attribute
This commit is contained in:
parent
08b180f442
commit
fbaba0f499
|
@ -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):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class Terminator:
|
||||
def __init__(self):
|
||||
self.glossary_cache = {}
|
||||
self._glossary_cache = {}
|
||||
|
||||
def make_terms(self, entry):
|
||||
terms = []
|
||||
|
|
Loading…
Reference in a new issue