Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #7293 -- Corrected some doctests strings internal to the templa…

…te module. Thanks, akaihola.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0433ffa6f62522bb841d3a8a3ffdb9b041cafb66 1 parent cf8abd1
@freakboy3742 freakboy3742 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 django/template/__init__.py
View
8 django/template/__init__.py
@@ -467,7 +467,7 @@ class FilterExpression(object):
>>> len(fe.filters)
2
>>> fe.var
- 'variable'
+ <Variable: 'variable'>
This class should never be instantiated outside of the
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
marks)::
- >>> c = {'article': {'section':'News'}}
+ >>> c = {'article': {'section':u'News'}}
>>> Variable('article.section').resolve(c)
u'News'
>>> Variable('article').resolve(c)
- {'section': 'News'}
+ {'section': u'News'}
>>> class AClass: pass
>>> c = AClass()
>>> c.article = AClass()
- >>> c.article.section = 'News'
+ >>> c.article.section = u'News'
>>> Variable('article.section').resolve(c)
u'News'
Please sign in to comment.
Something went wrong with that request. Please try again.