[Python-modules-commits] r16154 - in packages/feedparser/trunk/debian/patches (3 files)
cgalisteo-guest at users.alioth.debian.org
cgalisteo-guest at users.alioth.debian.org
Fri Mar 18 09:20:11 UTC 2011
Date: Friday, March 18, 2011 @ 09:19:59
Author: cgalisteo-guest
Revision: 16154
Patches included in 5.0
Deleted:
packages/feedparser/trunk/debian/patches/add-etag-only-if-etag-header-present.patch
packages/feedparser/trunk/debian/patches/auth_handlers_not_working.patch
packages/feedparser/trunk/debian/patches/feedparser_utf8_decoding.patch
Deleted: packages/feedparser/trunk/debian/patches/add-etag-only-if-etag-header-present.patch
===================================================================
--- packages/feedparser/trunk/debian/patches/add-etag-only-if-etag-header-present.patch 2011-03-18 09:14:21 UTC (rev 16153)
+++ packages/feedparser/trunk/debian/patches/add-etag-only-if-etag-header-present.patch 2011-03-18 09:19:59 UTC (rev 16154)
@@ -1,13 +0,0 @@
-Etag should only be present if an Etag HTTP header was provided by the web server.
---- a/feedparser.py
-+++ b/feedparser.py
-@@ -2497,7 +2497,8 @@
- # save HTTP headers
- if hasattr(f, 'info'):
- info = f.info()
-- result['etag'] = info.getheader('ETag')
-+ if info.has_key('Etag'):
-+ result['etag'] = info.getheader('ETag')
- last_modified = info.getheader('Last-Modified')
- if last_modified:
- result['modified'] = _parse_date(last_modified)
Deleted: packages/feedparser/trunk/debian/patches/auth_handlers_not_working.patch
===================================================================
--- packages/feedparser/trunk/debian/patches/auth_handlers_not_working.patch 2011-03-18 09:14:21 UTC (rev 16153)
+++ packages/feedparser/trunk/debian/patches/auth_handlers_not_working.patch 2011-03-18 09:19:59 UTC (rev 16154)
@@ -1,12 +0,0 @@
-Authentication handlers should be reordered in order to work.
---- a/feedparser.py
-+++ b/feedparser.py
-@@ -1823,7 +1823,7 @@
- if ACCEPT_HEADER:
- request.add_header('Accept', ACCEPT_HEADER)
- request.add_header('A-IM', 'feed') # RFC 3229 support
-- opener = apply(urllib2.build_opener, tuple([_FeedURLHandler()] + handlers))
-+ opener = apply(urllib2.build_opener, tuple(handlers + [_FeedURLHandler()]))
- opener.addheaders = [] # RMK - must clear so we only send our custom User-Agent
- try:
- return opener.open(request)
Deleted: packages/feedparser/trunk/debian/patches/feedparser_utf8_decoding.patch
===================================================================
--- packages/feedparser/trunk/debian/patches/feedparser_utf8_decoding.patch 2011-03-18 09:14:21 UTC (rev 16153)
+++ packages/feedparser/trunk/debian/patches/feedparser_utf8_decoding.patch 2011-03-18 09:19:59 UTC (rev 16154)
@@ -1,13 +0,0 @@
-unicode errors value moved from 'strict' (default) to 'replace'.
-This prevents from crashes caused by badly encoded feeds.
---- trunk.orig/feedparser.py
-+++ trunk/feedparser.py
-@@ -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:
More information about the Python-modules-commits
mailing list