diff options
author | mrtheb <mrlabbe@gmail.com> | 2013-10-03 22:52:04 -0400 |
---|---|---|
committer | mrtheb <mrlabbe@gmail.com> | 2013-10-03 22:52:04 -0400 |
commit | a03f0c86b8a504c0e3185cac1611131dba24f625 (patch) | |
tree | 3797524d3411640968292c6eba0141fc4c1f3457 /kafka/util.py | |
parent | b0cacc948539d180e4a634a06a10232770deb187 (diff) | |
download | kafka-python-a03f0c86b8a504c0e3185cac1611131dba24f625.tar.gz |
flake8 pass (pep8 and pyflakes)
Diffstat (limited to 'kafka/util.py')
-rw-r--r-- | kafka/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kafka/util.py b/kafka/util.py index 96b3745..54052fb 100644 --- a/kafka/util.py +++ b/kafka/util.py @@ -1,9 +1,8 @@ from collections import defaultdict -from itertools import groupby import struct from threading import Thread, Event -from common import * +from kafka.common import BufferUnderflowError def write_int_string(s): @@ -39,7 +38,8 @@ def read_short_string(data, cur): def read_int_string(data, cur): if len(data) < cur + 4: raise BufferUnderflowError( - "Not enough data left to read string len (%d < %d)" % (len(data), cur + 4)) + "Not enough data left to read string len (%d < %d)" % + (len(data), cur + 4)) (strlen,) = struct.unpack('>i', data[cur:cur + 4]) if strlen == -1: |