diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-03-05 12:55:17 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-03-05 12:55:17 +0100 |
commit | a984f4b016a50433aa84b027d7ad957e0cb75a2c (patch) | |
tree | eb365f400440f79c974e968a595000ca53734f6c /extra/pyfeeparser/feedparser_utf8_decoding.patch | |
parent | 9a0c0778726873530be82a5b328e8a879b71590c (diff) | |
download | nutyx-extra-a984f4b016a50433aa84b027d7ad957e0cb75a2c.tar.gz nutyx-extra-a984f4b016a50433aa84b027d7ad957e0cb75a2c.tar.bz2 nutyx-extra-a984f4b016a50433aa84b027d7ad957e0cb75a2c.tar.xz nutyx-extra-a984f4b016a50433aa84b027d7ad957e0cb75a2c.zip |
Ajout pyfeedparser#4.1-1
Diffstat (limited to 'extra/pyfeeparser/feedparser_utf8_decoding.patch')
-rw-r--r-- | extra/pyfeeparser/feedparser_utf8_decoding.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/pyfeeparser/feedparser_utf8_decoding.patch b/extra/pyfeeparser/feedparser_utf8_decoding.patch new file mode 100644 index 000000000..c1779c7e9 --- /dev/null +++ b/extra/pyfeeparser/feedparser_utf8_decoding.patch @@ -0,0 +1,12 @@ +--- /var/lib/python-support/python2.5/feedparser.py 2008-01-23 20:10:27.000000000 +0100 ++++ feedparser.py 2008-07-28 11:01:38.000000000 +0200 +@@ -1455,7 +1455,7 @@ + # thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds + for key, value in attrs: + if type(value) != type(u''): +- value = unicode(value, self.encoding) ++ value = unicode(value, self.encoding, errors='replace') + uattrs.append((unicode(key, self.encoding), value)) + strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding) + if tag in self.elements_no_end_tag: + |