From 0e08092f65464676b96e0783aee9e55fd839fc0a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 20 Jan 2011 05:30:13 +0900 Subject: [PATCH] disable callable replacement which isn't supported on older pythons --- anki/template/template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/anki/template/template.py b/anki/template/template.py index 3fb4ca3ab..531fcc6e0 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -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__'):