-
Notifications
You must be signed in to change notification settings - Fork 137
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
Allow to send requests with Tornado`s AsyncHTTPClient #34
Conversation
Yay, I've broken support for Python < 3.3 :( |
Thanks for the PR. We will need to maintain support for older versions of python before we can merge this though. Let me know if you'd like some suggestions... |
Fixed. Can you please check it again? |
@@ -275,6 +287,11 @@ def send_payload(payload): | |||
elif handler == 'agent': | |||
payload = ErrorIgnoringJSONEncoder().encode(payload) | |||
agent_log.error(payload) | |||
elif handler == 'tornado': | |||
if tornado_coroutine is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line looks unnecessary since tornado_coroutine
will always be defined (line 83)... right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, confused TornadoAsyncHTTPClient
with tornado_coroutine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes more sense.
See that one comment on the latest diff. The rest looks great. |
Fixed again :) Also i've squashed all into 1 commit. |
Looks great, thanks! Will merge once the travis build runs and passes. |
Wow, thank you. Looking forward to see this commit in next release :) |
Allow to send requests with Tornado's AsyncHTTPClient
Pushed to pypi in 0.9.1. Thanks again! |
No description provided.