[Erp5-report] r28752 - /erp5/trunk/products/ERP5Type/patches/ppml.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Sep 2 16:09:35 CEST 2009
Author: kazuhiko
Date: Wed Sep 2 16:09:34 2009
New Revision: 28752
URL: http://svn.erp5.org?rev=28752&view=rev
Log:
skip 'unicode validitity' check for unicode instance (r28750 was wrong, sorry).
Modified:
erp5/trunk/products/ERP5Type/patches/ppml.py
Modified: erp5/trunk/products/ERP5Type/patches/ppml.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/ppml.py?rev=28752&r1=28751&r2=28752&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/ppml.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/ppml.py [utf8] Wed Sep 2 16:09:34 2009
@@ -45,9 +45,7 @@
### [\x00-\x1f] characters will be escaped to make a more
### readable output.
try:
- if isinstance(S, unicode):
- S = S.encode('utf8')
- else:
+ if not isinstance(S, unicode):
S.decode('utf8')
except UnicodeDecodeError:
new = ''.join([reprs3.get(x) for x in S])
More information about the Erp5-report
mailing list