summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-11-04 14:11:39 +0100
committertnut <thierryn1 at hispeed dot ch>2010-11-04 14:11:39 +0100
commitd296e023c0d7a927da449e5a7e5c3c37f6a4bdad (patch)
tree55106ec0ddbc3d232d6378374b4c53718e34396e
parent48f09e83f0902ea4a71bada94b336f94a4eb067b (diff)
downloadnutyx-pakxe-d296e023c0d7a927da449e5a7e5c3c37f6a4bdad.tar.gz
nutyx-pakxe-d296e023c0d7a927da449e5a7e5c3c37f6a4bdad.tar.bz2
nutyx-pakxe-d296e023c0d7a927da449e5a7e5c3c37f6a4bdad.tar.xz
nutyx-pakxe-d296e023c0d7a927da449e5a7e5c3c37f6a4bdad.zip
pyfeedparser, port nettoyé
-rw-r--r--extra/pyfeedparser/Pkgfile2
-rw-r--r--extra/pyfeedparser/feedparser_utf8_decoding.patch12
2 files changed, 1 insertions, 13 deletions
diff --git a/extra/pyfeedparser/Pkgfile b/extra/pyfeedparser/Pkgfile
index 7be786689..4bd342ec7 100644
--- a/extra/pyfeedparser/Pkgfile
+++ b/extra/pyfeedparser/Pkgfile
@@ -8,7 +8,7 @@ name=pyfeedparser
version=4.1
release=1
source=(http://downloads.sourceforge.net/feedparser/feedparser-$version.zip\
- feedparser_utf8_decoding.patch)
+ http://nutyx.meticul.eu/files/patchs/$name/feedparser_utf8_decoding.patch)
build() {
patch -Np0 -i feedparser_utf8_decoding.patch
diff --git a/extra/pyfeedparser/feedparser_utf8_decoding.patch b/extra/pyfeedparser/feedparser_utf8_decoding.patch
deleted file mode 100644
index c1779c7e9..000000000
--- a/extra/pyfeedparser/feedparser_utf8_decoding.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- /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:
-