buriy / python-readability

fast python port of arc90's readability tool, updated to match latest readability.js!
https://github.com/buriy/python-readability
Apache License 2.0
2.67k stars 349 forks source link

re._pattern_type has been removed in favor of re.Pattern in Python 3.7 #155

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

use re.Pattern and if not present fall back to re._pattern_type.

https://github.com/buriy/python-readability/blob/73c598df810c049ee4c971418afa74849ad6d9a8/readability/readability.py#L80