1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Change some string literals to be unicode, because:

* It's the most micro of optimizations (forget I even said it)
    * It makes significantly more sense semantically, given these are functions which return unicode.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor
2011-10-11 17:36:05 +00:00
parent 4725a732e7
commit e35ba97740
2 changed files with 3 additions and 3 deletions

View File

@@ -817,7 +817,7 @@ class NodeList(list):
bits.append(self.render_node(node, context))
else:
bits.append(node)
return mark_safe(''.join([force_unicode(b) for b in bits]))
return mark_safe(u''.join([force_unicode(b) for b in bits]))
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"