Author: mtredinnick Date: 2007-11-03 21:08:15 -0500 (Sat, 03 Nov 2007) New Revision: 6644
Modified: django/trunk/tests/regressiontests/forms/extra.py Log: Fixed a Python 2.3 problem. Modified: django/trunk/tests/regressiontests/forms/extra.py =================================================================== --- django/trunk/tests/regressiontests/forms/extra.py 2007-11-04 02:08:04 UTC (rev 6643) +++ django/trunk/tests/regressiontests/forms/extra.py 2007-11-04 02:08:15 UTC (rev 6644) @@ -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() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
