summaryrefslogtreecommitdiffstats
path: root/python/lasso.py
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-09 00:16:08 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-09 00:16:08 +0000
commite0ab9a70d5e266529518b22a6df04a2f07a2e20f (patch)
treed12a30a1f00da38ddbbb540a5f2acbaeba674b8c /python/lasso.py
parent5eeb378d17e33896536d5dc32283cd3e15dc7f2c (diff)
downloadlasso-e0ab9a70d5e266529518b22a6df04a2f07a2e20f.tar.gz
lasso-e0ab9a70d5e266529518b22a6df04a2f07a2e20f.tar.xz
lasso-e0ab9a70d5e266529518b22a6df04a2f07a2e20f.zip
*** empty log message ***
Diffstat (limited to 'python/lasso.py')
-rw-r--r--python/lasso.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 7e7f4391..0e622806 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -70,7 +70,10 @@ class Node:
return lassomod.node_get_attr_value(self, name)
def get_child(self, name):
- return Node(_obj=lassomod.node_get_child(self, name))
+ obj = lassomod.node_get_child(self, name)
+ if obj:
+ return Node(_obj=obj)
+ return None
def get_content(self):
return lassomod.node_get_content(self)