Skip to content

Commit

Permalink
Fixed #7293 -- Corrected some doctests strings internal to the templa…
Browse files Browse the repository at this point in the history
…te module. Thanks, akaihola.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jun 6, 2008
1 parent cf8abd1 commit 0433ffa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django/template/__init__.py
Expand Up @@ -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.
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 0433ffa

Please sign in to comment.