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

autocmake/external/docopt.py : SyntaxWarning: invalid escape sequence ... #274

Open
miroi opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@miroi
Copy link
Contributor

miroi commented Dec 4, 2024

Hello Rado,

I am reporting SyntaxWarnings in DIRAC/cmake/autocmake/external/docopt.py,

from https://app.readthedocs.org/api/v2/build/26473960.txt :

./setup $READTHEDOCS_OUTPUT
/home/docs/checkouts/readthedocs.org/user_builds/diracprogram-documentation/checkouts/latest/cmake/autocmake/external/docopt.py:162: SyntaxWarning: invalid escape sequence '\S'
  name = re.findall("(<\S*?>)", source)[0]
/home/docs/checkouts/readthedocs.org/user_builds/diracprogram-documentation/checkouts/latest/cmake/autocmake/external/docopt.py:163: SyntaxWarning: invalid escape sequence '\['
  value = re.findall("\[default: (.*)\]", source, flags=re.I)
/home/docs/checkouts/readthedocs.org/user_builds/diracprogram-documentation/checkouts/latest/cmake/autocmake/external/docopt.py:202: SyntaxWarning: invalid escape sequence '\['
  matched = re.findall("\[default: (.*)\]", description, flags=re.I)
/home/docs/checkouts/readthedocs.org/user_builds/diracprogram-documentation/checkouts/latest/cmake/autocmake/external/docopt.py:454: SyntaxWarning: invalid escape sequence '\S'
  split = re.split("\n *(<\S+?>|-\S+?)", doc)[1:]

Lines are here:
https://github.com/dev-cafe/autocmake/blob/master/autocmake/external/docopt.py#L162
https://github.com/dev-cafe/autocmake/blob/master/autocmake/external/docopt.py#L163
https://github.com/dev-cafe/autocmake/blob/master/autocmake/external/docopt.py#L202
https://github.com/dev-cafe/autocmake/blob/master/autocmake/external/docopt.py#L454

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

1 participant