Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CSS Selector to use new style #786

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Update CSS Selector to use new style #786

merged 1 commit into from
Feb 12, 2024

Conversation

Jamstah
Copy link
Contributor

@Jamstah Jamstah commented Jan 17, 2024

Fixes #783

New style of calling the CSSSelector directly instead of using the evaluate function. This has been supported since lxml 1.1 [1] and the evaluate method has been deprecated since lxml 2.1 [2].

[1] https://github.com/lxml/lxml/blob/lxml-1.1/src/lxml/xpath.pxi#L66
[2] https://github.com/lxml/lxml/blob/lxml-2.1/src/lxml/xpath.pxi#L143

Copy link
Owner

@thp thp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please add an entry to CHANGELOG.md, and we can merge this.

New style of calling the CSSSelector directly instead of using the
evaluate function. This has been supported since lxml 1.1 [1] and the
evaluate method has been deprecated since lxml 2.1 [2].

[1] https://github.com/lxml/lxml/blob/lxml-1.1/src/lxml/xpath.pxi#L66
[2] https://github.com/lxml/lxml/blob/lxml-2.1/src/lxml/xpath.pxi#L143

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
@Jamstah
Copy link
Contributor Author

Jamstah commented Jan 23, 2024

Thanks! Please add an entry to CHANGELOG.md, and we can merge this.

Yw! Done.

Copy link
Owner

@thp thp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@thp thp merged commit 123de66 into thp:master Feb 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSS Filter "AttributeError: 'CSSSelector' object has no attribute 'evaluate'"
2 participants