From: Armin Ronacher Date: Sun, 1 Apr 2007 10:07:21 +0000 (+0200) Subject: [svn] fixed beewee's bug X-Git-Tag: 2.0rc1~378 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=954153b3f2715affa961e740defac9d5618eb4b5;p=jinja2.git [svn] fixed beewee's bug --HG-- branch : trunk --- 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