diff --git a/CHANGES.md b/CHANGES.md index 74d0fb5..33c1b87 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,12 @@ - Summary: - Insert something here +## Version: 0.1.9 + +- Released: 2023-12-11 +- Summary: + - Remove debugging print() statements + ## Version: 0.1.8 - Released: 2023-12-11 diff --git a/ciscoconfparse2/ccp_abc.py b/ciscoconfparse2/ccp_abc.py index 96c7b8c..ee8da32 100644 --- a/ciscoconfparse2/ccp_abc.py +++ b/ciscoconfparse2/ccp_abc.py @@ -1015,7 +1015,6 @@ def append_to_family(self, insertstr, indent=-1, auto_indent=False): # self.confobj.index(foo), which is rather fragile with # this UserList... _idx = self.linenum + len(self.children) + 1 - print(" ->PEAR", newobj) retval = self.confobj.insert(_idx, newobj) if self.classify_family_indent(insertstr) == 0: @@ -1031,7 +1030,6 @@ def append_to_family(self, insertstr, indent=-1, auto_indent=False): elif len(self.all_children) > 0 and len(self.children) == 0: - print(" ->CHAIR", newobj) _idx = self.linenum + 1 retval = self.confobj.insert(_idx, newobj) insertstr_family_indent = self.classify_family_indent(insertstr) @@ -1051,7 +1049,6 @@ def append_to_family(self, insertstr, indent=-1, auto_indent=False): ####################################################### # Append a sibling for the children ####################################################### - print(" ->FAIR", newobj) _idx = self.linenum + len(self.children) elif insertstr_family_indent > self.classify_family_indent(self.text): @@ -1059,10 +1056,8 @@ def append_to_family(self, insertstr, indent=-1, auto_indent=False): # Insert a child... do the children have children? ####################################################### if len(self.children[-1].children) > 0: - print(" ->ERR", newobj) _idx = self.linenum + len(self.all_children) + 1 else: - print(" ->TEAR", newobj) _idx = self.linenum + len(self.children) + 1 elif insertstr_family_indent < self.classify_family_indent(self.text): @@ -1095,7 +1090,6 @@ def append_to_family(self, insertstr, indent=-1, auto_indent=False): # Use newobj_parent.linenum instead of # self.confobj.index(foo), which is rather fragile with # this UserList... - print(" ->ZAIR", newobj) _idx = self.linenum + 1 if True: diff --git a/pyproject.toml b/pyproject.toml index fe02478..f5231a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ requires-python = ">=3.8.0" [tool.poetry] name = "ciscoconfparse2" -version = "0.1.8" +version = "0.1.9" description = "Parse, Audit, Query, Build, and Modify Cisco IOS-style and JunOS-style configs" license = "GPL-3.0-only" authors = [