python-zk/kazoo — pull request #165 by rgs1 (2014-01-24 20:20:07+00:00)
Title: Don't treat null (or None) data as ""

In ZK's Java impl if the data is null, it'll be serialized
with length equals -1. If it is an empty string, it'll be serialized
with length equals 0.

Currently, Kazoo treats data with a length of -1 as "". This diff
changes it so that it'll come back as None. Same thing for creating
and setting data to None. Tests added.

Reported-by: Grant Monroe
Signed-off-by: Raul Gutierrez S