Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a Python 2.3 problem.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 77a846bab0704549360d10e794e4c522de116cbf 1 parent 99697d9
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/regressiontests/forms/extra.py
3  tests/regressiontests/forms/extra.py
View
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
tests = r"""
>>> from django.newforms import *
+>>> from django.utils.encoding import force_unicode
>>> import datetime
>>> import time
>>> import re
@@ -362,7 +363,7 @@
... return self.as_divs()
... def as_divs(self):
... if not self: return u''
-... return u'<div class="errorlist">%s</div>' % ''.join([u'<div class="error">%s</div>' % e for e in self])
+... return u'<div class="errorlist">%s</div>' % ''.join([u'<div class="error">%s</div>' % force_unicode(e) for e in self])
>>> class CommentForm(Form):
... name = CharField(max_length=50, required=False)
... email = EmailField()
Please sign in to comment.
Something went wrong with that request. Please try again.