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

Use top-level kafka imports to be more future-proof #5702

Merged
merged 3 commits into from
Feb 11, 2020
Merged

Use top-level kafka imports to be more future-proof #5702

merged 3 commits into from
Feb 11, 2020

Conversation

jeffwidman
Copy link
Contributor

Now that kafka-python 2.0 shipped, you can directly import the async client via the top level.

Now that `kafka-python` 2.0 shipped, you can directly import the async client via the top level.
@jeffwidman jeffwidman marked this pull request as ready for review February 11, 2020 18:31
@jeffwidman jeffwidman requested a review from a team as a code owner February 11, 2020 18:31
@jeffwidman
Copy link
Contributor Author

jeffwidman commented Feb 11, 2020

I threw this together using the GitHub Web UI, so because it touched two files it took two commits. So please squash when merging.

@ofek ofek changed the title Use top-level import Use top-level kafka imports to be more future-proof Feb 11, 2020
from kafka import KafkaClient
from kafka import errors as kafka_errors
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ofek ofek merged commit 2c4c485 into DataDog:master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants