1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: Fix Syntax Warning
Fix SyntaxWarning during the build.
Author: Emmanuel Arias <eamanu@debian.org>
Bug-Debian: https://bugs.debian.org/1087194
Forwarded: https://github.com/bartongroup/yanosim/pull/2
Applied-Upstream: <version|URL|commit, identifies patches merged upstream, optional>
Last-Update: 2024-12-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/yanosim/utils.py
+++ b/yanosim/utils.py
@@ -45,7 +45,7 @@
read_id = list(read_id)
assert len(read_id) == 1
read_id = read_id[0][1:].strip()
- read_id = re.split('[\s|]', read_id)[0]
+ read_id = re.split(r'[\s|]', read_id)[0]
_, seq = next(header_grouped)
seq = ''.join([line.strip() for line in seq])
- yield read_id, seq
\ No newline at end of file
+ yield read_id, seq
|