| 1 |
Description: Fix Python3.12 string syntax |
| 2 |
Bug-Debian: https://bugs.debian.org/1085786 |
| 3 |
Author: Andreas Tille <[email protected]> |
| 4 |
Last-Update: 2024-06-08 |
| 5 |
|
| 6 |
--- a/porechop/misc.py |
| 7 |
+++ b/porechop/misc.py |
| 8 |
@@ -258,7 +258,7 @@ def print_table(table, print_dest, align |
| 9 |
for text, colour_name in sub_colour.items(): |
| 10 |
row_str = row_str.replace(text, colour(text, colour_name)) |
| 11 |
if j < row_rows - 1 and UNDERLINE in row_str: |
| 12 |
|
| 13 |
+ row_str = re.sub(r'\033\[4m', '', row_str) |
| 14 |
if return_str: |
| 15 |
full_table_str += indenter + row_str + '\n' |
| 16 |
else: |