diff --git a/ciscoconfparse/ccp_abc.py b/ciscoconfparse/ccp_abc.py index 9c47576c..0b01930f 100644 --- a/ciscoconfparse/ccp_abc.py +++ b/ciscoconfparse/ccp_abc.py @@ -449,8 +449,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() @@ -608,7 +606,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()