diff options
author | David Arthur <mumrah@gmail.com> | 2013-03-01 15:12:21 -0500 |
---|---|---|
committer | David Arthur <mumrah@gmail.com> | 2013-04-02 20:19:30 -0400 |
commit | eac51e9c68c50f15962b6c785ede92cb3d512a17 (patch) | |
tree | ec814fa65e96a8a4db1d2e6aceb319ebb23a781f /kafka/util.py | |
parent | 2a3d231aa61642c57537bc2128dd4f2bd30f35dd (diff) | |
download | kafka-python-eac51e9c68c50f15962b6c785ede92cb3d512a17.tar.gz |
Integration tests passing
Diffstat (limited to 'kafka/util.py')
-rw-r--r-- | kafka/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/util.py b/kafka/util.py index 509c5b8..715fb28 100644 --- a/kafka/util.py +++ b/kafka/util.py @@ -4,13 +4,13 @@ import struct def write_int_string(s): if s is None: - return struct.pack('>i', 0) # TODO change this to -1 when KAFKA-771 is accepted + return struct.pack('>i', -1) else: return struct.pack('>i%ds' % len(s), len(s), s) def write_short_string(s): if s is None: - return struct.pack('>h', 0) # TODO change this to -1 when KAFKA-771 is accepted + return struct.pack('>h', -1) else: return struct.pack('>h%ds' % len(s), len(s), s) |