Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: SyntaxWarnings due to non-raw regex pattern strings (#2359)
Fixes warnings of the form: ``` SyntaxWarning: invalid escape sequence '\[' ``` Some of these warnings were causing linting test failures on Python 3.12. ### Description Converts several regex pattern strings to raw strings (`r""`) in order to avoid `SyntaxWarning` due to invalid backslash-escape sequences ### QC <!-- Make sure that you can tick the boxes below. --> * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. The changes in the first commit fix test failures on Python 3.12. It’s not immediately clear how I would test the changes in the second commit, although I confirm that they eliminate (non-failure) `SyntaxWarning` messages when byte-compiling the modules. * [x] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake). No documentation changes are required.
- Loading branch information
1 parent
4be2f9d
commit a08c0b0
Showing
6 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters