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/1087041
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-06-11
--- a/readucks/misc.py
+++ b/readucks/misc.py
@@ -224,7 +224,7 @@ def print_table(table, print_dest, align
for text, colour_name in sub_colour.items():
row_str = row_str.replace(text, colour(text, colour_name))
if j < row_rows - 1 and UNDERLINE in row_str:
- row_str = re.sub('\033\[4m', '', row_str)
+ row_str = re.sub(r'\033\[4m', '', row_str)
if return_str:
full_table_str += indenter + row_str + '\n'
else:
|