Skip to content

Fix invalid escape sequence warnings#808

Draft
Mirochill wants to merge 1 commit into
etetoolkit:ete3from
Mirochill:fix-771-invalid-escape-warnings
Draft

Fix invalid escape sequence warnings#808
Mirochill wants to merge 1 commit into
etetoolkit:ete3from
Mirochill:fix-771-invalid-escape-warnings

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • convert the invalid escape sequence regex literals reported in Importing ete3 generates many SyntaxWarnings with python 3.12 #771 to raw strings
  • make affected documentation strings raw where their ASCII tree examples intentionally contain backslashes
  • keep control-character literals such as tab/newline/carriage return intact where they are part of parser character sets

Fixes #771.

Validation

  • git diff --check
  • Not run locally

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.

1 participant