Skip to content

Commit

Permalink
Minor import cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Powers committed Sep 5, 2014
1 parent 3ec3989 commit 8d85ed1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kafka/conn.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import copy
import logging
from random import shuffle
import socket
import struct
from random import shuffle
from threading import local

from kafka.common import ConnectionError
Expand Down
12 changes: 6 additions & 6 deletions kafka/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
from multiprocessing import Process, Queue as MPQueue, Event, Value
from Queue import Empty, Queue

import kafka
import kafka.common
from kafka.common import (
FetchRequest,
OffsetRequest, OffsetCommitRequest,
OffsetFetchRequest,
ConsumerFetchSizeTooSmall, ConsumerNoMoreData
FetchRequest, OffsetRequest,
OffsetCommitRequest, OffsetFetchRequest,
ConsumerFetchSizeTooSmall, ConsumerNoMoreData,
UnknownTopicOrPartitionError
)

from kafka.util import ReentrantTimer
Expand Down Expand Up @@ -114,7 +114,7 @@ def get_or_init_offset_callback(resp):
try:
kafka.common.check_error(resp)
return resp.offset
except kafka.common.UnknownTopicOrPartitionError:
except UnknownTopicOrPartitionError:
return 0

for partition in partitions:
Expand Down

0 comments on commit 8d85ed1

Please sign in to comment.