File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
from collections import defaultdict
2
2
from functools import partial
3
+ from itertools import count
3
4
import logging
4
5
import time
5
6
6
- from kafka .common import count , ErrorMapping , TopicAndPartition
7
+ from kafka .common import ErrorMapping , TopicAndPartition
7
8
from kafka .conn import KafkaConnection
8
9
from kafka .protocol import KafkaProtocol
9
10
Original file line number Diff line number Diff line change 3
3
import struct
4
4
import unittest
5
5
6
- from kafka .client import KafkaClient , ProduceRequest , FetchRequest
6
+ from kafka .client import KafkaClient
7
+ from kafka .common import ProduceRequest , FetchRequest
7
8
from kafka .codec import (
8
9
has_gzip , has_snappy ,
9
10
gzip_encode , gzip_decode ,
@@ -59,7 +60,6 @@ class TestMisc(unittest.TestCase):
59
60
def test_length_prefix (self ):
60
61
for i in xrange (ITERATIONS ):
61
62
s1 = random_string ()
62
- s2 = length_prefix_message (s1 )
63
63
self .assertEquals (struct .unpack ('>i' , s2 [0 :4 ])[0 ], len (s1 ))
64
64
65
65
You can’t perform that action at this time.
0 commit comments