Skip to content

Commit

Permalink
Remove broken syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 13, 2023
1 parent 201f26d commit 103db2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciscoconfparse/ccp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3474,7 +3474,7 @@ def remove(self, arg):
def as_list(self):
"""Return a list of sorted components; an empty string is automatically rejected. This method is tricky to test due to the requirement for the `.sort_list` attribute on all elements; avoid using the ordered nature of `as_list` and use `as_set`."""
try:
[getattr(x, "sort_list") for x in self._list]:
[getattr(x, "sort_list") for x in self._list]
return [str(ii) for ii in sorted(list(set(self._list)) if ii != "", key=lambda x: x.sort_list, reverse=False)]
except AttributeError as eee:
logger.error(eee)
Expand Down

0 comments on commit 103db2d

Please sign in to comment.