From 907eb05eb5e6884cc3b549c33478f1cde79492a9 Mon Sep 17 00:00:00 2001 From: lemora Date: Thu, 21 Nov 2024 13:25:44 +0100 Subject: [PATCH] fix regex: make string a raw string literal --- src/draw_rna/inv_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw_rna/inv_utils.py b/src/draw_rna/inv_utils.py index 97926e2..e614b50 100755 --- a/src/draw_rna/inv_utils.py +++ b/src/draw_rna/inv_utils.py @@ -38,7 +38,7 @@ def vienna_fold(seq, cotransc=False, constraint=False): p.wait() # split result by whitespace - toks = re.split('\s+| \(?\s?',pair) + toks = re.split(r'\s+| \(?\s?',pair) ret= [] ret.append(toks[1]) ret.append(toks[2][1:-1])