From 1e72b6b20a93b1512f33291ae3cd3307e0f9544e Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Thu, 4 Jan 2024 16:32:34 +0200 Subject: [PATCH] silence lxml warning --- cobalt/akn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobalt/akn.py b/cobalt/akn.py index 6c23904..4a5ac55 100644 --- a/cobalt/akn.py +++ b/cobalt/akn.py @@ -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