diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-11-09 17:15:40 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-11-09 17:15:40 -0500 |
commit | 3663597c1d76da5b72b93e295c2325fba4a05e0d (patch) | |
tree | aeaaa95c2a10ea855dc4662ba3fc975d8ba856b5 | |
parent | a77050643a7c62314a9ae170e752618cf6dc97cb (diff) | |
download | askbot-3663597c1d76da5b72b93e295c2325fba4a05e0d.tar.gz askbot-3663597c1d76da5b72b93e295c2325fba4a05e0d.tar.bz2 askbot-3663597c1d76da5b72b93e295c2325fba4a05e0d.zip |
switched from urlparse.parse_qsl to cgi.parse_qsl for backwards compatibility with Python < 2.6
-rw-r--r-- | askbot/__init__.py | 2 | ||||
-rw-r--r-- | askbot/deps/django_authopenid/util.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/askbot/__init__.py b/askbot/__init__.py index ed9d6980..87e9e2e5 100644 --- a/askbot/__init__.py +++ b/askbot/__init__.py @@ -22,7 +22,7 @@ def get_version(): """returns version of the askbot app this version is meaningful for pypi only """ - return '0.6.24' + return '0.6.26' #todo: maybe send_mail functions belong to models #or the future API diff --git a/askbot/deps/django_authopenid/util.py b/askbot/deps/django_authopenid/util.py index 73b0ed77..43666566 100644 --- a/askbot/deps/django_authopenid/util.py +++ b/askbot/deps/django_authopenid/util.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import urlparse +import cgi import urllib from askbot.deps.openid.store.interface import OpenIDStore from askbot.deps.openid.association import Association as OIDAssociation @@ -505,7 +505,7 @@ class OAuthConnection(object): response, content = client.request(url, method, **kwargs) if response['status'] == '200': - return dict(urlparse.parse_qsl(content)) + return dict(cgi.parse_qsl(content)) else: raise OAuthError('response is %s' % response) @@ -569,7 +569,7 @@ def get_facebook_user_id(request): secret = askbot_settings.FACEBOOK_SECRET fb_cookie = request.COOKIES['fbs_%s' % key] - fb_response = dict(urlparse.parse_qsl(fb_cookie)) + fb_response = dict(cgi.parse_qsl(fb_cookie)) signature = None payload = '' |