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

Error when using positive_keywords (or negative_keywords) argument with python >= 3.7 #161

Open
nbtravis opened this issue Mar 14, 2021 · 1 comment

Comments

@nbtravis
Copy link

Got the following error:

File "/usr/local/lib/python3.8/site-packages/readability/readability.py", line 138, in __init__ self.positive_keywords = compile_pattern(positive_keywords) File "/usr/local/lib/python3.8/site-packages/readability/readability.py", line 80, in compile_pattern elif isinstance(elements, re._pattern_type): AttributeError: module 're' has no attribute '_pattern_type'

Looks like re._pattern_type has been removed in 3.7 but there's an easy fix: beetbox/beets#2986

@JackieFei
Copy link

@buriy We need a new release to merge this commit : 7f9cf4a, thanks.

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

No branches or pull requests

2 participants