Comment 3 for bug 1053534

Revision history for this message
David Smith (dasmith2+launchpad) wrote :

Here's a patch that fixes it.

=== modified file 'pybars/_compiler.py'
--- pybars/_compiler.py 2012-07-30 03:42:07 +0000
+++ pybars/_compiler.py 2012-09-20 18:41:01 +0000
@@ -205,6 +205,8 @@
         context = context(this)
     if context:
         return options['fn'](this)
+ else:
+ return options['inverse'](this)

 def _log(this, context):