summaryrefslogtreecommitdiffstats
path: root/cython/plist.pyx
diff options
context:
space:
mode:
authorGravatar Bryan Forbes2011-09-26 17:16:13 +0200
committerGravatar Nikias Bassen2011-09-26 17:16:13 +0200
commit3ceae531d868f6c1341cf916bcb0ae1248d688cd (patch)
tree6adbe963574e9b29672d40f4991e629ac37e0159 /cython/plist.pyx
parentf57dd030b971d14942aaec3a42d176d57547355c (diff)
downloadlibplist-3ceae531d868f6c1341cf916bcb0ae1248d688cd.tar.gz
libplist-3ceae531d868f6c1341cf916bcb0ae1248d688cd.tar.bz2
If the plist type is none, return None.
Diffstat (limited to 'cython/plist.pyx')
-rw-r--r--cython/plist.pyx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index 336b16f..f4e7dbb 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -697,3 +697,5 @@ cdef object plist_t_to_node(plist_t c_plist, bool managed=True):
return Date_factory(c_plist, managed)
if t == PLIST_DATA:
return Data_factory(c_plist, managed)
+ if t == PLIST_NONE:
+ return None