diff markup/eval.py @ 194:c0535b218466 trunk

Fix regression introduced in [242]: any reference to an undefined name would result in a `NameError`.
author cmlenz
date Thu, 24 Aug 2006 19:05:22 +0000
parents b64e36bc1100
children ca8a9defe6fe
line wrap: on
line diff
--- a/markup/eval.py
+++ b/markup/eval.py
@@ -92,7 +92,7 @@
                                   '_lookup_name': _lookup_name,
                                   '_lookup_attr': _lookup_attr,
                                   '_lookup_item': _lookup_item})
-        if not nocall and callable(retval):
+        if not nocall and type(retval) is not Undefined and callable(retval):
             retval = retval()
         return retval
 
Copyright (C) 2012-2017 Edgewall Software