Skip to content

python 2.5.2 compatibility problem due to parse_qs #47

Closed
@vtsao

Description

@vtsao

in oauth2/init.py parse_qs is being imported from urllib but in python 2.5.2 it does not exist there but instead in cgi

I had to add the following to get it to work (taken from here http://vasudevkamath.blogspot.com/2010/12/conditional-import-in-python.html):
try:
from urlparse import parse_qs, parse_qsl
except ImportError:
# fall back for Python 2.5
from cgi import parse_qs, parse_qsl

I am using Debian (lenny/sid)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions