[Erp5-report] r15221 - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jul 16 10:03:30 CEST 2007
Author: jp
Date: Mon Jul 16 10:03:29 2007
New Revision: 15221
URL: http://svn.erp5.org?rev=15221&view=rev
Log:
Added comment for performance.
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=15221&r1=15220&r2=15221&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py (original)
+++ erp5/trunk/products/ERP5/Document/Document.py Mon Jul 16 10:03:29 2007
@@ -1090,7 +1090,8 @@
else:
stripped_html = html
# find charset and convert to utf-8
- charset_list = self.charset_parser.findall(str(html))
+ charset_list = self.charset_parser.findall(str(html)) # XXX - Not efficient is datastream
+ # instance but hard to do better
if charset_list:
stripped_html = unicode(stripped_html, charset_list[0]).encode('utf-8')
return stripped_html
More information about the Erp5-report
mailing list