mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
disable callable replacement which isn't supported on older pythons
This commit is contained in:
parent
f945e60d6d
commit
0e08092f65
1 changed files with 3 additions and 3 deletions
|
@ -81,9 +81,9 @@ class Template(object):
|
|||
|
||||
it = get_or_attr(context, section_name, None)
|
||||
replacer = ''
|
||||
if it and isinstance(it, collections.Callable):
|
||||
replacer = it(inner)
|
||||
elif it and not hasattr(it, '__iter__'):
|
||||
# if it and isinstance(it, collections.Callable):
|
||||
# replacer = it(inner)
|
||||
if it and not hasattr(it, '__iter__'):
|
||||
if section[2] != '^':
|
||||
replacer = inner
|
||||
elif it and hasattr(it, 'keys') and hasattr(it, '__getitem__'):
|
||||
|
|
Loading…
Reference in a new issue