Skip to content

Commit

Permalink
Fix deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jan 20, 2025
1 parent 99b0a6b commit c4893a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/alexandria3k/data_sources/orcid.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def tar_generator(self):

def get_element_tree(self):
"""Return the parsed XML data of the current element"""
if self.element_tree:
if self.element_tree is not None:
return self.element_tree
# Extract and parse XML data
reader = self.tar.extractfile(self.tar_info)
Expand Down
2 changes: 1 addition & 1 deletion src/alexandria3k/data_sources/uspto.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def Column(self, col):

if col >= 3:
# Check if an addressbook element exists.
if self.elements[self.record_id()].find("addressbook"):
if self.elements[self.record_id()].find("addressbook") is not None:
# Append addressbook string to meet XML pattern.
pattern = "addressbook/" + f"{self.column_contents[col]}"

Expand Down

0 comments on commit c4893a7

Please sign in to comment.