| 1 |
Description: Fix Python3.12 string syntax |
| 2 |
Bug-Debian: https://bugs.debian.org/1085573 |
| 3 |
Author: Andreas Tille <[email protected]> |
| 4 |
Last-Update: 2024-06-06 |
| 5 |
|
| 6 |
--- a/pyfastaq/sequences.py |
| 7 |
+++ b/pyfastaq/sequences.py |
| 8 |
@@ -34,8 +34,8 @@ def file_reader(fname, read_quals=False) |
| 9 |
'''Iterates over a FASTA or FASTQ file, yielding the next sequence in the file until there are no more sequences''' |
| 10 |
f = utils.open_file_read(fname) |
| 11 |
line = f.readline() |
| 12 |
- phylip_regex = re.compile('^\s*[0-9]+\s+[0-9]+$') |
| 13 |
- gbk_regex = re.compile('^LOCUS\s+\S') |
| 14 |
+ phylip_regex = re.compile(r'^\s*[0-9]+\s+[0-9]+$') |
| 15 |
+ gbk_regex = re.compile(r'^LOCUS\s+\S') |
| 16 |
|
| 17 |
if line.startswith('>'): |
| 18 |
seq = Fasta() |