try:
# caching is only possible for the python translator. skip
# all other translators
- if isinstance(translator, PythonTranslator):
+ if not issubclass(translator, PythonTranslator):
return super(CachedLoaderMixin, self).load(
environment, name, translator)
try:
# caching is only possible for the python translator. skip
# all other translators
- if isinstance(translator, PythonTranslator):
+ if not issubclass(translator, PythonTranslator):
return super(MemcachedLoaderMixin, self).load(
environment, name, translator)
tmpl = None