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 11from collections import defaultdict
22from functools import partial
3+ from itertools import count
34import logging
45import time
56
6- from kafka .common import count , ErrorMapping , TopicAndPartition
7+ from kafka .common import ErrorMapping , TopicAndPartition
78from kafka .conn import KafkaConnection
89from kafka .protocol import KafkaProtocol
910
Original file line number Diff line number Diff line change 33import struct
44import unittest
55
6- from kafka .client import KafkaClient , ProduceRequest , FetchRequest
6+ from kafka .client import KafkaClient
7+ from kafka .common import ProduceRequest , FetchRequest
78from kafka .codec import (
89 has_gzip , has_snappy ,
910 gzip_encode , gzip_decode ,
@@ -59,7 +60,6 @@ class TestMisc(unittest.TestCase):
5960 def test_length_prefix (self ):
6061 for i in xrange (ITERATIONS ):
6162 s1 = random_string ()
62- s2 = length_prefix_message (s1 )
6363 self .assertEquals (struct .unpack ('>i' , s2 [0 :4 ])[0 ], len (s1 ))
6464
6565
You can’t perform that action at this time.
0 commit comments