Skip to content

Instantly share code, notes, and snippets.

@davecahill
Created May 8, 2013 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davecahill/5539050 to your computer and use it in GitHub Desktop.
Save davecahill/5539050 to your computer and use it in GitHub Desktop.
Index: src/zc/zk/__init__.py
===================================================================
--- src/zc/zk/__init__.py (revision 130228)
+++ src/zc/zk/__init__.py (working copy)
@@ -518,6 +518,10 @@
return
if name is None:
name = path.rsplit('/', 1)[1]
+
+ if(meta["dataLength"] == 0):
+ data = ""
+
properties = decode(data)
type_ = properties.pop('type', None)
if type_:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment