Skip to content

Commit bbb1178

Browse files
committed
context: removal of lyb_mod_update parse option
This patch removes the lyb_mod_update parsing option as this option is no longer valid in libyang v4 Signed-off-by: Stefan Gula <steweg@gmail.com>
1 parent 2cae616 commit bbb1178

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

cffi/cdefs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ LY_ERR lyd_print_mem(char **, const struct lyd_node *, LYD_FORMAT, uint32_t);
316316
LY_ERR lyd_print_tree(struct ly_out *, const struct lyd_node *, LYD_FORMAT, uint32_t);
317317
LY_ERR lyd_print_all(struct ly_out *, const struct lyd_node *, LYD_FORMAT, uint32_t);
318318

319-
#define LYD_PARSE_LYB_MOD_UPDATE ...
320319
#define LYD_PARSE_NO_STATE ...
321320
#define LYD_PARSE_STORE_ONLY ...
322321
#define LYD_PARSE_JSON_NULL ...

libyang/context.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ def parse_data(
575575
in_type: IOType,
576576
in_data: Union[str, bytes, IO],
577577
parent: DNode = None,
578-
lyb_mod_update: bool = False,
579578
no_state: bool = False,
580579
parse_only: bool = False,
581580
opaq: bool = False,
@@ -590,7 +589,6 @@ def parse_data(
590589
if self.cdata is None:
591590
raise RuntimeError("context already destroyed")
592591
parser_flgs = parser_flags(
593-
lyb_mod_update=lyb_mod_update,
594592
no_state=no_state,
595593
parse_only=parse_only,
596594
opaq=opaq,
@@ -648,7 +646,6 @@ def parse_data_mem(
648646
data: Union[str, bytes],
649647
fmt: str,
650648
parent: DNode = None,
651-
lyb_mod_update: bool = False,
652649
no_state: bool = False,
653650
parse_only: bool = False,
654651
opaq: bool = False,
@@ -665,7 +662,6 @@ def parse_data_mem(
665662
in_type=IOType.MEMORY,
666663
in_data=data,
667664
parent=parent,
668-
lyb_mod_update=lyb_mod_update,
669665
no_state=no_state,
670666
parse_only=parse_only,
671667
opaq=opaq,
@@ -683,7 +679,6 @@ def parse_data_file(
683679
fileobj: IO,
684680
fmt: str,
685681
parent: DNode = None,
686-
lyb_mod_update: bool = False,
687682
no_state: bool = False,
688683
parse_only: bool = False,
689684
opaq: bool = False,
@@ -700,7 +695,6 @@ def parse_data_file(
700695
in_type=IOType.FD,
701696
in_data=fileobj,
702697
parent=parent,
703-
lyb_mod_update=lyb_mod_update,
704698
no_state=no_state,
705699
parse_only=parse_only,
706700
opaq=opaq,

libyang/data.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def newval_flags(
109109

110110
# -------------------------------------------------------------------------------------
111111
def parser_flags(
112-
lyb_mod_update: bool = False,
113112
no_state: bool = False,
114113
parse_only: bool = False,
115114
opaq: bool = False,
@@ -120,8 +119,6 @@ def parser_flags(
120119
json_string_datatypes: bool = False,
121120
) -> int:
122121
flags = 0
123-
if lyb_mod_update:
124-
flags |= lib.LYD_PARSE_LYB_MOD_UPDATE
125122
if no_state:
126123
flags |= lib.LYD_PARSE_NO_STATE
127124
if parse_only:

0 commit comments

Comments
 (0)