Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-piles committed Jan 29, 2024
1 parent 5d3d028 commit 5803242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdf_features/PdfFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def from_poppler_etree_content(
@staticmethod
def contains_text(xml_path: str):
file_content = open(xml_path).read()
file_bytes = file_content.encode('utf-8')
file_bytes = file_content.encode("utf-8")
root: ElementBase = etree.fromstring(file_bytes)
text_elements: list[ElementBase] = root.findall('.//text')
text_elements: list[ElementBase] = root.findall(".//text")
return len(text_elements) > 0

@staticmethod
Expand Down

0 comments on commit 5803242

Please sign in to comment.