From 954153b3f2715affa961e740defac9d5618eb4b5 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 1 Apr 2007 12:07:21 +0200 Subject: [PATCH] [svn] fixed beewee's bug --HG-- branch : trunk --- jinja/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja/filters.py b/jinja/filters.py index 76dd1be..4cb2661 100644 --- a/jinja/filters.py +++ b/jinja/filters.py @@ -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 -- 2.26.2