- Released: 2023-02-17
- Summary:
- Simplify `find_object_branches()`
- Remove unused test fixtures and imports
- As part of Github issue 264 (Remove duplicated obj init code from `CiscoConfParse()._bootstrap_obj_init_foo()`), also remove a duplicate method: `ConfigList()._build_cfgobj_from_text()`
- As part of Github issue 265, fix a broken `loguru` parameter: change it from `allow_enqueue` to `enqueue`
- Close Github issue 266 as wont-fix: make `BaseCfgLine().calculate_line_id()` hash comments / whitespace
- Reformat `ciscoconfparse/ciscoconfparse.py` and `ciscoconfparse/ccp_abc.py` with black
- Add new `as_dict_diff` attribute (used by `HDiff()`) on `BaseCfgLine()`.
- Add more debugs in `HDiff().compress_dict_diffs()`.
- Raise an explicit `NotImplementedError` in `HDiff().sort_lines()`
- Remove manual prepends from `HDiff()` and `CiscoConfParse().sync_diff()`
- Remove hard-coded blank-line handling which was based on the value of the `HDiff()` `syntax` parameter
- Add `ignore_blank_lines` parameter to `HDiff()` (to mirror the same parameter in `CiscoConfParse()`)
- Remove the `consider_whitespace` parameter from `HDiff().build_diff_obj_list()`
- Change `CiscoConfParse()._list` to `CiscoConfParse().ConfigObjs`
- Expand test coverage to test parsing with and without blank lines in the input config.
- Add more test cases to check blank line parsing while using any valid ccp syntax
- Update documentation