clsung/plurk-oauth — Issue #1: PlurkOAuth.get_request_token doesn't work
Author: legnaleurc
Created: 2011-12-31 19:28:54+00:00
State: open

PlurkOAuth.request returns a tuple, however urlparse.parse_qsl only accepts a string.

And if you need a dict, urlparse.parse_qs maybe a better function.

Maybe like this:

if content[0] != '200':
raise Exception( content[2] ) # you will need a proper exception type
self.oauth_token = urlparse.parse_qs( content[1] )