Skip to content
Snippets Groups Projects
Commit 71bcbe0a authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Fix bug in from_raw.

parent be414060
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ def contents(*filenames):
setup(
name = "yangson",
packages = ["yangson"],
version = "0.1.14",
version = "0.1.15",
description = "Library for working with YANG schemas and data",
author = "Ladislav Lhotka",
author_email = "lhotka@nic.cz",
......
......@@ -268,11 +268,10 @@ class InternalNode(SchemaNode):
res = ObjectValue()
for qn in val:
p, s, loc = qn.partition(":")
if s:
ns = p
else:
if not s:
loc = p
cn = self.get_data_child(loc, ns)
p = ns
cn = self.get_data_child(loc, p)
res[cn.qname] = cn.from_raw(val[qn])
res.time_stamp()
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment