Skip to content

Commit

Permalink
silence lxml warning
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jan 4, 2024
1 parent c1758c1 commit 1e72b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobalt/akn.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def get_portion_element(self, portion, component=None):
Range portions (eg. `chp_1->chp_3`) are not supported by this function.
"""
root = component or self.root
root = component if component is not None else self.root

if portion in self.non_eid_portions:
# these are valid portions that don't have eids
Expand Down

0 comments on commit 1e72b6b

Please sign in to comment.