File: python3.12-syntax.patch

package info (click to toggle)
readucks 0.0.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,460 kB
  • sloc: python: 1,973; sh: 38; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 679 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/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: