[svn] fixed beewee's bug
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 1 Apr 2007 10:07:21 +0000 (12:07 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 1 Apr 2007 10:07:21 +0000 (12:07 +0200)
--HG--
branch : trunk

jinja/filters.py

index 76dd1beb396065c654b6e100c6cd60f903dd3590..4cb2661ef37d4c6a96ad18688c28e6a3c19109a1 100644 (file)
@@ -599,7 +599,7 @@ def do_capture(name='captured', clean=False):
         {% endfilter %}
         {{ foo }}
     """
-    if not isinstance(name, unicode):
+    if not isinstance(name, basestring):
         raise FilterArgumentError('You can only capture into variables')
     def wrapped(env, context, value):
         context[name] = value