[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1121057: libreoffice-numbertext: SyntaxWarning: invalid escape sequence '\s'



Package: libreoffice-numbertext
Version: 1.0.11-4
Severity: normal

Looks like a typo, this patch corrects the problem:

--- /usr/lib/libreoffice/share/extensions/numbertext/pythonpath/org/Numbertext/Soros.py~        2023-12-05 19:08:54.000000000 +0100                                                                                
+++ /usr/lib/libreoffice/share/extensions/numbertext/pythonpath/org/Numbertext/Soros.py 2025-11-20 09:36:46.910701632 +0100                                                                                        
@@ -43,7 +43,7 @@ class _Soros:                                                                           
         # switch off all country-dependent lines, and switch on the requested ones                       
         prg = re.sub(r"(^|[\n;])([^\n;#]*#[^\n]*[\[]:[^\n:\]]*:][^\n]*)", r"\1#\2", prg)                 
         prg = re.sub(r"(^|[\n;])#([^\n;#]*#[^\n]*[\[]:" + lang.replace("_", "-") + r":][^\n]*)", r"\1\2", prg)                                                                                                    
-        matchline = re.compile("^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$")                               
+        matchline = re.compile(r"^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$")                              
         prefix = ""                                                                                      
         for s in re.sub("(#[^\n]*)?(\n|$)", ";", prg).split(";"):                                        
             macro = re.match("== *(.*[^ ]?) ==", s)                                                      


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-security'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.9+deb14-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libreoffice-numbertext depends on:
ii  libreoffice-calc  4:25.8.2-3
ii  python3-uno       4:25.8.2-3

libreoffice-numbertext recommends no packages.

libreoffice-numbertext suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/libreoffice/share/extensions/numbertext/pythonpath/org/Numbertext/Soros.py (from libreoffice-numbertext package)


Reply to: