Skip to content

Minor cleanups #221

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

Merged
merged 9 commits into from
Sep 7, 2014
Merged

Minor cleanups #221

merged 9 commits into from
Sep 7, 2014

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Sep 1, 2014

No description provided.

@dpkp
Copy link
Owner Author

dpkp commented Sep 2, 2014

not sure why the travis build didn't automatically get linked, but it passed: https://travis-ci.org/mumrah/kafka-python/jobs/34144266

@dpkp dpkp mentioned this pull request Sep 3, 2014
@wizzat
Copy link
Collaborator

wizzat commented Sep 4, 2014

This PR needs rebased

@dpkp
Copy link
Owner Author

dpkp commented Sep 4, 2014

rebased -- waiting on tests

@@ -112,9 +112,9 @@ def fetch_last_known_offsets(self, partitions=None):

def get_or_init_offset_callback(resp):
try:
kafka.common.check_error(resp)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a big fan of static import check_error. :(

Copy link
Owner Author

Choose a reason for hiding this comment

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

trying to avoid the bare import kafka (which is circular) . perhaps we should import kafka.common instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure, kafka.common is good. However, most problems I've seen with circular imports have arised from the "from X import Y" syntax.

dpkp added a commit that referenced this pull request Sep 7, 2014
@dpkp dpkp merged commit a99384f into dpkp:master Sep 7, 2014
@dpkp dpkp deleted the minor_cleanups branch June 10, 2015 00:34
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

Successfully merging this pull request may close these issues.

2 participants