Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 10, 2023
2 parents 7959752 + ba94c73 commit 8623e89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ciscoconfparse/ccp_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def diff_id_list(self):
len_geneology = len(self.geneology)

for idx, obj in enumerate(self.geneology):
obj._line_id = obj.calculate_line_id()
# W0212: Access to a protected attribute (i.e. with leading underscore)
obj._line_id = obj.calculate_line_id() # noqa: W0212

# idx = 0 is the oldest ancestor
if idx == 0:
Expand All @@ -200,8 +201,6 @@ def diff_id_list(self):

elif idx <= len_geneology - 1:
# This object is a child of self.parent
if False:
assert obj.indent > 0
retval.insert(0, obj._line_id)

# retval usually looks like this (example with a single parent obj):
Expand Down

0 comments on commit 8623e89

Please sign in to comment.