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

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

Projects

None yet

2 participants

@pyscripter

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

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

@tomerfiliba
Owner

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

@pyscripter

Ok, thanks for the quick fixes.

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