diff options
author | David Arthur <mumrah@gmail.com> | 2013-10-04 04:54:12 -0700 |
---|---|---|
committer | David Arthur <mumrah@gmail.com> | 2013-10-04 04:54:12 -0700 |
commit | cfd9f86e60429d1f7af8bcac5849808354b8719e (patch) | |
tree | 82039e80d595b4ad611a831a597521cae7939571 /kafka/util.py | |
parent | b0cacc948539d180e4a634a06a10232770deb187 (diff) | |
parent | 59af614d1d09db6f7e0115dcf39232bf4f0ece9a (diff) | |
download | kafka-python-cfd9f86e60429d1f7af8bcac5849808354b8719e.tar.gz |
Merge pull request #59 from mrtheb/master
flake8 (pep8 and pyflakes) clean-up
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: |