From d2ae6d426f2f47ccaa9cd8372d9e8313000d751e Mon Sep 17 00:00:00 2001 From: mpenning Date: Tue, 10 Oct 2023 17:14:15 -0500 Subject: [PATCH] Silence W0212 for line --- ciscoconfparse/ccp_abc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ciscoconfparse/ccp_abc.py b/ciscoconfparse/ccp_abc.py index 8838b9ea..ff1fb00e 100644 --- a/ciscoconfparse/ccp_abc.py +++ b/ciscoconfparse/ccp_abc.py @@ -455,8 +455,6 @@ def _list_reassign_linenums(self): # by confobj.delete()) in favor of a simpler approach # in confobj.delete() # - # def _list_reassign_linenums(self): - # self.confobj._reassign_linenums() raise NotImplementedError() # On BaseCfgLine() @@ -614,7 +612,8 @@ def delete(self, recurse=True): logger.debug(" Deleting .".format(linenum)) del self.confobj._list[linenum] - self.confobj._reassign_linenums() + # W0212: Access to a protected attribute (i.e. with leading underscore) + self.confobj._reassign_linenums() # noqa: W0212 return True # On BaseCfgLine()