Skip to content

Commit

Permalink
support latest cssselect
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Dec 28, 2022
1 parent ce99700 commit 1863290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pyquery/cssselectpatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def __str__(self):
path = '%s[%s]' % (path, self.post_condition)
return path

def join(self, combiner, other):
res = XPathExprOrig.join(self, combiner, other)
def join(self, combiner, other,
closing_combiner=None, has_inner_condition=False):
res = XPathExprOrig.join(self, combiner, other,
closing_combiner=closing_combiner,
has_inner_condition=has_inner_condition)
self.post_condition = other.post_condition
return res

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

install_requires = [
'lxml>=2.1',
'cssselect>0.7.9',
'cssselect>=1.2.0',
]


Expand Down

0 comments on commit 1863290

Please sign in to comment.