Skip to content

fix SyntaxWarning: invalid escape sequence #1350

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

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

njzjz
Copy link
Contributor

@njzjz njzjz commented May 16, 2024

Fix the following warnings:

  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:329: SyntaxWarning: invalid escape sequence '\S'
    "(?:_(.+?)[.](\S+))"               "|"  # _category.attribute
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:331: SyntaxWarning: invalid escape sequence '\s'
    "(?:['](.*?)(?:[']\s|[']$))"       "|"  # single quoted strings
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:332: SyntaxWarning: invalid escape sequence '\s'
    "(?:[\"](.*?)(?:[\"]\s|[\"]$))"    "|"  # double quoted strings
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:334: SyntaxWarning: invalid escape sequence '\s'
    "(?:\s*#.*$)"                      "|"  # comments (dumped)
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:336: SyntaxWarning: invalid escape sequence '\S'
    "(\S+)"                                 # unquoted words
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:401: SyntaxWarning: invalid escape sequence '\S'
    "(?:_(.+?)[.](\S+))"               "|"  # _category.attribute
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:403: SyntaxWarning: invalid escape sequence '\s'
    "(?:['\"](.*?)(?:['\"]\s|['\"]$))" "|"  # quoted strings
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:405: SyntaxWarning: invalid escape sequence '\s'
    "(?:\s*#.*$)"                      "|"  # comments (dumped)
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/formats/pdbx/PdbxReader.py:407: SyntaxWarning: invalid escape sequence '\S'
    "(\S+)"                                 # unquoted words
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/amber/parameters.py:28: SyntaxWarning: invalid escape sequence '\s'
    '%(FLOATRE)s\s+%(FLOATRE)s\s+%(FLOATRE)s' % subs)
  /opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/parmed/amber/parameters.py:34: SyntaxWarning: invalid escape sequence '\s'
    '%(FLOATRE)s\s+%(FLOATRE)s\s+%(FLOATRE)s' % subs)

@swails swails merged commit cc8b774 into ParmEd:master Jun 24, 2024
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.

2 participants