File: python3.12-syntax.patch

package info (click to toggle)
microbegps 1.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 167,012 kB
  • sloc: python: 2,788; makefile: 12; sh: 9
file content (16 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
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/1085723
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-06-06

--- a/microbegps/gps.py
+++ b/microbegps/gps.py
@@ -88,7 +88,7 @@ def __calculate_mapping_score_no_pysam(c
 	# get mismatches from SAM tag 'MD'
 	score += nm
 	# get all errors from cigar string
-	for ln,er in re.findall('(\d+)([ID])',cigar):
+	for ln,er in re.findall(r'(\d+)([ID])',cigar):
 		score += float(ln)
 	return score/float(rlen)