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

Python 3k issue in async_request (protocol.py) #59

Closed
pyscripter opened this issue Jan 7, 2012 · 3 comments
Closed

Python 3k issue in async_request (protocol.py) #59

pyscripter opened this issue Jan 7, 2012 · 3 comments

Comments

@pyscripter
Copy link
Contributor

The statement

raise TypeError("got unexpected keyword argument %r" % (list(kwargs.keys())[0],))

will raise a dict_keys' object does not support indexing error
Replace that statement with

raise TypeError("got unexpected keyword argument %r" % (list(kwargs.keys())[0],))
@pyscripter
Copy link
Contributor Author

Looking at the change log I noticed that you forgot the index [0]

@tomerfiliba
Copy link
Collaborator

i didn't forget, i removed it. note that i rephrased the text a little. thanks.

@pyscripter
Copy link
Contributor Author

Ok, thanks for the quick fixes.

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

No branches or pull requests

2 participants