Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Mar 18, 2024
1 parent f4fe997 commit 102f50b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cssselect2/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def _compile_node(selector):
elif isinstance(selector, parser.CompoundSelector):
sub_expressions = [
expr for expr in [
_compile_node(selector) for selector in selector.simple_selectors]
_compile_node(selector)
for selector in selector.simple_selectors]
if expr != '1']
if len(sub_expressions) == 1:
return sub_expressions[0]
Expand Down Expand Up @@ -411,7 +412,6 @@ def _compile_node(selector):
raise TypeError(type(selector), selector)



def html_tag_eq(*local_names):
"""Generate expression testing equality with HTML local names."""
if len(local_names) == 1:
Expand Down

0 comments on commit 102f50b

Please sign in to comment.