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

GFFParser.py: fix SyntaxWarning. #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emollier
Copy link

@emollier emollier commented Nov 5, 2024

This change treats the regex passed to the compiler as a raw string. This resolve the following warning:

  /usr/lib/python3/dist-packages/BCBio/GFF/GFFParser.py:71:
SyntaxWarning: invalid escape sequence '\w'
    gff3_kw_pat = re.compile("\w+=")

The issue has been initially reported in Debian bug #1085892.

This change treats the regex passed to the compiler as a raw string.
This resolve the following warning:

	  /usr/lib/python3/dist-packages/BCBio/GFF/GFFParser.py:71:
	SyntaxWarning: invalid escape sequence '\w'
	    gff3_kw_pat = re.compile("\w+=")

The issue has been initially reported in [Debian bug #1085892].

[Debian bug #1085892]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085892

Signed-off-by: Étienne Mollier <[email protected]>
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