Beispiel #1
0
 def free(self, with_siblings: bool = True) -> None:
     try:
         if with_siblings:
             lib.lyd_free_withsiblings(self.cdata)
         else:
             lib.lyd_free(self.cdata)
     finally:
         self.cdata = None
Beispiel #2
0
 def free(self, with_siblings=True):
     try:
         if with_siblings:
             lib.lyd_free_withsiblings(self._node)
         else:
             lib.lyd_free(self._node)
     finally:
         self._node = None