File: postinst_syntaxwarning.patch

package info (click to toggle)
ocrfeeder 0.8.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,776 kB
  • sloc: python: 6,488; sh: 875; makefile: 116; xml: 65
file content (16 lines) | stat: -rw-r--r-- 718 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix syntaxwarning at package installation.
Author: Pieter Lenaerts <plenae@disroot.org>
Bug-Debian: https://bugs.debian.org/1085746
Forwarded: https://gitlab.gnome.org/GNOME/ocrfeeder/-/merge_requests/26
Last-Update: 2025-11-10
--- a/src/ocrfeeder/util/configuration.py
+++ b/src/ocrfeeder/util/configuration.py
@@ -187,7 +187,7 @@
     def __getColorFromString(self, color):
         if type(color) != str:
             return color
-        color_list = [value.strip('()\ ') for value in color.split(',')]
+        color_list = [value.strip('()\\ ') for value in color.split(',')]
         try:
             int_color_list = [int(value) for value in color_list]
         except ValueError as exception: