Protect attribute
This commit is contained in:
parent
08b180f442
commit
fbaba0f499
|
@ -11,10 +11,10 @@ class JitenonTerminator(Terminator):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _glossary(self, entry):
|
def _glossary(self, entry):
|
||||||
if entry.entry_id in self.glossary_cache:
|
if entry.entry_id in self._glossary_cache:
|
||||||
return self.glossary_cache[entry.entry_id]
|
return self._glossary_cache[entry.entry_id]
|
||||||
glossary = make_glossary(entry)
|
glossary = make_glossary(entry)
|
||||||
self.glossary_cache[entry.entry_id] = glossary
|
self._glossary_cache[entry.entry_id] = glossary
|
||||||
return glossary
|
return glossary
|
||||||
|
|
||||||
def _sequence(self, entry):
|
def _sequence(self, entry):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class Terminator:
|
class Terminator:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.glossary_cache = {}
|
self._glossary_cache = {}
|
||||||
|
|
||||||
def make_terms(self, entry):
|
def make_terms(self, entry):
|
||||||
terms = []
|
terms = []
|
||||||
|
|
Loading…
Reference in a new issue