pyapi CHANGE reflect libyang python module renaming
libyang python module is now just yang instead of libyang
diff --git a/python/examples/editconfig.py b/python/examples/editconfig.py
index 802dc15..cc8a960 100755
--- a/python/examples/editconfig.py
+++ b/python/examples/editconfig.py
@@ -4,7 +4,7 @@
import os
import getpass
import json
-import libyang as ly
+import yang
import netconf2 as nc
def interactive_auth(name, instruct, prompt, data):
@@ -50,7 +50,7 @@
# prepare config content as string or data tree
tm = session.context.get_module("turing-machine")
# config = "<turing-machine xmlns=\"http://example.net/turing-machine\"><transition-function><delta><label>left summand</label><input><state>0</state></input></delta></transition-function></turing-machine>"
-config = ly.Data_Node(session.context, "/turing-machine:turing-machine/transition-function/delta[label='left summand']/input/state", "5", 0, 0)
+config = yang.Data_Node(session.context, "/turing-machine:turing-machine/transition-function/delta[label='left summand']/input/state", "5", 0, 0)
# perform <edit-config> and print result
try:
diff --git a/python/examples/get.py b/python/examples/get.py
index 9ccfb73..b69cfbb 100755
--- a/python/examples/get.py
+++ b/python/examples/get.py
@@ -3,7 +3,7 @@
import sys
import os
import getpass
-import libyang as ly
+import yang
import netconf2 as nc
def interactive_auth(name, instruct, prompt, data):
@@ -56,4 +56,4 @@
print(json.dumps(reply))
sys.exit(1)
-print(data.print_mem(ly.LYD_XML, ly.LYP_FORMAT | ly.LYP_WITHSIBLINGS))
+print(data.print_mem(yang.LYD_XML, yang.LYP_FORMAT | yang.LYP_WITHSIBLINGS))