Skip to content

Commit 52bbdd1

Browse files
author
annbgn
committed
run black
1 parent ebee7a7 commit 52bbdd1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cssselect/parser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,16 +661,14 @@ def parse_relative_selector(stream):
661661
while 1:
662662
if next.type in ("IDENT", "STRING", "NUMBER") or next in [("DELIM", "."), ("DELIM", "*")]:
663663
subselector += next.value
664-
elif next == ('DELIM', ')'):
664+
elif next == ("DELIM", ")"):
665665
result = parse(subselector)
666666
return combinator, result[0]
667667
else:
668-
raise SelectorSyntaxError(
669-
"Expected an argument, got %s" % (next,))
668+
raise SelectorSyntaxError("Expected an argument, got %s" % (next,))
670669
next = stream.next()
671670

672671

673-
674672
def parse_simple_selector_arguments(stream):
675673
arguments = []
676674
while 1:

cssselect/xpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def xpath_direct_adjacent_combinator(self, left, right):
386386

387387
def xpath_indirect_adjacent_combinator(self, left, right):
388388
"""right is a sibling after left, immediately or not"""
389-
return left.join('/following-sibling::', right)
389+
return left.join("/following-sibling::", right)
390390

391391
def xpath_relation_descendant_combinator(self, left, right):
392392
"""right is a child, grand-child or further descendant of left; select left"""

0 commit comments

Comments
 (0)