Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future strings do not work with urllib.urlencode #219

Open
st-pasha opened this issue Jul 13, 2016 · 1 comment
Open

future strings do not work with urllib.urlencode #219

st-pasha opened this issue Jul 13, 2016 · 1 comment

Comments

@st-pasha
Copy link

In Python 2.7.12 the following snippet throws an exception (KeyError: 47) in standard library urllib:

from future.types import newstr as str
import urllib
urllib.urlencode({"a": str("/foo")}, doseq=True)

This might be a bug with urllib itself, since the exception only appears with the doseq parameter. However I was wondering whether this is something you might be able to fix.

@c4milo
Copy link

c4milo commented Jan 16, 2020

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants