[Pypi-checkins] r833 - trunk/pypi
martin.von.loewis
python-checkins at python.org
Sat Jul 31 01:42:25 CEST 2010
Author: martin.von.loewis
Date: Sat Jul 31 01:42:25 2010
New Revision: 833
Modified:
trunk/pypi/openid2rp.py
Log:
Incorporate bug fixes from upstream.
Modified: trunk/pypi/openid2rp.py
==============================================================================
--- trunk/pypi/openid2rp.py (original)
+++ trunk/pypi/openid2rp.py Sat Jul 31 01:42:25 2010
@@ -146,7 +146,10 @@
def do_link(self, attrs):
attrs = dict(attrs)
- self.links[attrs['rel']] = attrs['href']
+ try:
+ self.links[attrs['rel']] = attrs['href']
+ except KeyError:
+ pass
def do_meta(self, attrs):
attrs = dict(attrs)
@@ -457,7 +460,7 @@
def _prepare_response(response):
if isinstance(response, str):
- return cgi.parse_qs(response)
+ return cgi.parse_qs(response, keep_blank_values=True)
# backwards compatibility: allow caller to pass parse_qs result
# already
pass
More information about the Pypi-checkins
mailing list