Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Nov 21, 2023
1 parent d8a95fc commit 0696d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion archive_query_log/parsers/warc_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def _parse_warc_snippets(
method="xml",
pretty_print=False,
with_tail=True,
with_comments=True,
)
snippet_id_components = (
parser.id,
Expand Down
5 changes: 2 additions & 3 deletions archive_query_log/parsers/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ def xpaths_from_css_selector(css_selector: str) -> list[str]:
return ["."]
selectors = cssselect_parse(css_selector)
return [
_translator.selector_to_xpath(
_translator.selector_to_xpath(
selector,
prefix="",
translate_pseudo_elements=True,
).replace(
"/descendant-or-self::*/", "//")
).replace("/descendant-or-self::*/", "//")
for selector in selectors
]

Expand Down

0 comments on commit 0696d11

Please sign in to comment.