Skip to content

Commit 92b5250

Browse files
data: remove no_parent_ret flag
This flag should have been removed when we ported to libyang 2. It can safely be removed. Although it is an API change, it seems acceptable as the flag was doing nothing. Fixes: 806be4c ("Port to libyang 2") Signed-off-by: Samuel Gauthier <[email protected]>
1 parent 04b1c81 commit 92b5250

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

libyang/context.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def create_data_path(
234234
parent: Optional[DNode] = None,
235235
value: Any = None,
236236
update: bool = True,
237-
no_parent_ret: bool = True,
238237
rpc_output: bool = False,
239238
force_return_value: bool = True,
240239
) -> Optional[DNode]:
@@ -245,9 +244,7 @@ def create_data_path(
245244
value = str(value).lower()
246245
elif not isinstance(value, str):
247246
value = str(value)
248-
flags = path_flags(
249-
update=update, no_parent_ret=no_parent_ret, rpc_output=rpc_output
250-
)
247+
flags = path_flags(update=update, rpc_output=rpc_output)
251248
dnode = ffi.new("struct lyd_node **")
252249
ret = lib.lyd_new_path(
253250
parent.cdata if parent else ffi.NULL,

libyang/data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ def data_format(fmt_string: str) -> int:
7777

7878

7979
# -------------------------------------------------------------------------------------
80-
def path_flags(
81-
update: bool = False, rpc_output: bool = False, no_parent_ret: bool = False
82-
) -> int:
80+
def path_flags(update: bool = False, rpc_output: bool = False) -> int:
8381
flags = 0
8482
if update:
8583
flags |= lib.LYD_NEW_PATH_UPDATE

0 commit comments

Comments
 (0)