File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1515- Add ``keep_rows `` method to table classes to support efficient in-place
1616 table subsetting (:user: `jeromekelleher `, :pr: `2700 `)
1717
18+ **Bugfixes **
19+
20+ - Fix `UnicodeDecodeError ` when calling `Variant.alleles ` on the `emscripten ` platform.
21+ (:user: `benjeffery `, :pr: `2754 `, :issue: `2737 `)
22+
1823--------------------
1924[0.5.4] - 2023-01-13
2025--------------------
Original file line number Diff line number Diff line change @@ -578,7 +578,8 @@ make_alleles(tsk_variant_t *variant)
578578 goto out ;
579579 }
580580 for (j = 0 ; j < variant -> num_alleles ; j ++ ) {
581- item = Py_BuildValue ("s#" , variant -> alleles [j ], variant -> allele_lengths [j ]);
581+ item = Py_BuildValue (
582+ "s#" , variant -> alleles [j ], (Py_ssize_t ) variant -> allele_lengths [j ]);
582583 if (item == NULL ) {
583584 Py_DECREF (t );
584585 goto out ;
You can’t perform that action at this time.
0 commit comments