This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py
Type: behavior Stage: resolved
Components: Build Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, pablogsal, vstinner, xtreak
Priority: normal Keywords: patch

Created on 2020-08-31 16:11 by xtreak, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22047 merged pablogsal, 2020-09-01 19:24
PR 22065 merged miss-islington, 2020-09-02 14:30
Messages (2)
msg376158 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-08-31 16:11
Following warnings are caused in Doc/tools/extensions/peg_highlight.py . These warnings show up during doc builds since the extension is used in the build. This is an easy issue to fix.

./python -Wall -m py_compile /root/cpython/Doc/tools/extensions/peg_highlight.py
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: invalid escape sequence \[
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: invalid escape sequence \(
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
msg376198 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-09-01 16:08
Do you want to propose a PR to fix these warnings?
History
Date User Action Args
2022-04-11 14:59:35adminsetgithub: 85845
2020-09-02 16:53:39pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-09-02 14:30:49miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request21155
2020-09-01 19:24:55pablogsalsetkeywords: + patch
stage: patch review
pull_requests: + pull_request21144
2020-09-01 16:08:28vstinnersetnosy: + vstinner
messages: + msg376198
2020-08-31 16:11:52xtreakcreate