From 028f834677ee46ca6d3bac712d9a38fdae56eedd Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Sun, 1 Mar 2026 22:07:59 -0700 Subject: [PATCH] Remove redundant copy in getSequenceInRange --- pysam/libcalignedsegment.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysam/libcalignedsegment.pyx b/pysam/libcalignedsegment.pyx index c33188cd8..0db89f61a 100644 --- a/pysam/libcalignedsegment.pyx +++ b/pysam/libcalignedsegment.pyx @@ -550,7 +550,7 @@ cdef inline bytes getSequenceInRange(bam1_t *src, # note: do not use string literal as it will be a python string s[k-start] = seq_nt16_str[p[k//2] >> 4 * (1 - k%2) & 0xf] - return charptr_to_bytes(seq) + return seq #####################################################################