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

Fixed a few regex warnings #127

Merged
merged 1 commit into from
Dec 30, 2019
Merged

Fixed a few regex warnings #127

merged 1 commit into from
Dec 30, 2019

Conversation

azmeuk
Copy link

@azmeuk azmeuk commented Dec 29, 2019

Raised by pytest:

readability/readability.py:36
  /home/azmeuk/dev/python-readability/readability/readability.py:36: DeprecationWarning: invalid escape sequence \/
    'videoRe': re.compile('https?:\/\/(www\.)?(youtube|vimeo)\.com', re.I),

readability/readability.py:60
  /home/azmeuk/dev/python-readability/readability/readability.py:60: DeprecationWarning: invalid escape sequence \s
    text = re.sub('\s*\n\s*', '\n', text)

readability/readability.py:274
  /home/azmeuk/dev/python-readability/readability/readability.py:274: DeprecationWarning: invalid escape sequence \.
    and re.search('\.( |$)', node_content):

readability/encoding.py:54
  /home/azmeuk/dev/python-readability/readability/encoding.py:54: DeprecationWarning: invalid escape sequence \s
    text = re.sub(b'(\s*</?[^>]*>)+\s*', b' ', page).strip()

readability/debug.py:44
  /home/azmeuk/dev/python-readability/readability/debug.py:44: DeprecationWarning: invalid escape sequence \s
    RE_COLLAPSE_WHITESPACES = re.compile('\s+', re.U)

-- Docs: https://docs.pytest.org/en/latest/warnings.html

@buriy buriy merged commit 5032e2d into buriy:master Dec 30, 2019
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.

None yet

2 participants