1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: fix SyntaxWarning.
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+=")
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085892
Forwarded: https://github.com/chapmanb/bcbb/pull/145
Last-Update: 2024-11-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-bcbio-gff.orig/BCBio/GFF/GFFParser.py
+++ python-bcbio-gff/BCBio/GFF/GFFParser.py
@@ -68,7 +68,7 @@
out.append(p)
return out
- gff3_kw_pat = re.compile("\w+=")
+ gff3_kw_pat = re.compile(r"\w+=")
def _split_keyvals(keyval_str):
"""Split key-value pairs in a GFF2, GTF and GFF3 compatible way.
|