|
From: <sub...@co...> - 2007-03-28 17:07:01
|
Author: ianb
Date: 2007-03-28 11:06:59 -0600 (Wed, 28 Mar 2007)
New Revision: 2469
Modified:
FormEncode/trunk/formencode/foreach.py
Log:
Use unicode() when combining exception messages in foreach (from Alberto Valverde)
Modified: FormEncode/trunk/formencode/foreach.py
===================================================================
--- FormEncode/trunk/formencode/foreach.py 2007-03-28 16:43:49 UTC (rev 2468)
+++ FormEncode/trunk/formencode/foreach.py 2007-03-28 17:06:59 UTC (rev 2469)
@@ -88,7 +88,7 @@
return new_list
else:
raise Invalid(
- 'Errors:\n%s' % '\n'.join([str(e) for e in errors if e]),
+ 'Errors:\n%s' % '\n'.join([unicode(e) for e in errors if e]),
value,
state,
error_list=errors)
|