1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Fix Python3.12 string syntax
Bug-Debian: https://bugs.debian.org/1085417
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-06-06
--- a/circlator/dnaa.py
+++ b/circlator/dnaa.py
@@ -15,7 +15,7 @@ class UniprotDownloader:
def __init__(self, min_gene_length=333, max_gene_length=500, uniprot_search='dnaa', header_regex='dnaa', header_regex_ignorecase=True):
self.min_gene_length = min_gene_length
self.max_gene_length = max_gene_length
- self.uniprot_search = re.sub('\s+', '+', uniprot_search.strip())
+ self.uniprot_search = re.sub(r'\s+', '+', uniprot_search.strip())
if header_regex_ignorecase:
self.header_regex = re.compile(header_regex, re.IGNORECASE)
else:
|