Fixed #7293 -- Corrected some doctests strings internal to the template module. Thanks, akaihola.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2008-06-06 13:58:42 +00:00
parent cf8abd1bf2
commit 0433ffa6f6
1 changed files with 4 additions and 4 deletions

View File

@ -467,7 +467,7 @@ class FilterExpression(object):
>>> len(fe.filters) >>> len(fe.filters)
2 2
>>> fe.var >>> fe.var
'variable' <Variable: 'variable'>
This class should never be instantiated outside of the This class should never be instantiated outside of the
get_filters_from_token helper function. get_filters_from_token helper function.
@ -598,15 +598,15 @@ class Variable(object):
a hard-coded string (if it begins and ends with single or double quote a hard-coded string (if it begins and ends with single or double quote
marks):: marks)::
>>> c = {'article': {'section':'News'}} >>> c = {'article': {'section':u'News'}}
>>> Variable('article.section').resolve(c) >>> Variable('article.section').resolve(c)
u'News' u'News'
>>> Variable('article').resolve(c) >>> Variable('article').resolve(c)
{'section': 'News'} {'section': u'News'}
>>> class AClass: pass >>> class AClass: pass
>>> c = AClass() >>> c = AClass()
>>> c.article = AClass() >>> c.article = AClass()
>>> c.article.section = 'News' >>> c.article.section = u'News'
>>> Variable('article.section').resolve(c) >>> Variable('article.section').resolve(c)
u'News' u'News'