I assume that your existing code works in version 2.6 or something newer, and you are trying to return to 2.4? parse_qs used in the cgi module before it was ported to urlparse . Try import cgi , cgi.parse_qs .
Inspired by a TryPyPy comment, I think you could run your source in any environment by doing the following:
import urlparse
But I do not have 2.4 to try this, therefore no promises.
source share