Public bug reported:
libreoffice frequently gives warnings:
/usr/lib/libreoffice/share/extensions/lightproof_en/pythonpath/lightproof_impl_lightproof_en.py:129:
SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not
work in the future. Did you mean "\\w"? A raw string is also an option.
a = re.match("(?u)( [-.\w%%]+){" + str(n-1) + "}( [-.\w%%]+)", s)
/usr/lib/libreoffice/share/extensions/lightproof_en/pythonpath/lightproof_impl_lightproof_en.py:136:
SyntaxWarning: "\w" is an invalid escape sequence. Such sequences will not
work in the future. Did you mean "\\w"? A raw string is also an option.
a = re.search("(?u)([-.\w%%]+ )([-.\w%%]+ ){" + str(n-1) + "}$", s)
The attached patch appears to resolve the issue, but since this is a
locale-specific file I doubt that it is the correct fix; probably
something in the source package should be patched instead.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libreoffice-lightproof-en 0.4.3+1.6-5
ProcVersionSignature: Ubuntu 7.0.0-22.22-generic 7.0.0
Uname: Linux 7.0.0-22-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Mon Jun 15 15:40:09 2026
InstallationDate: Installed on 2018-12-01 (2753 days ago)
InstallationMedia: Lubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
SourcePackage: lightproof
UpgradeStatus: Upgraded to resolute on 2020-11-06 (2047 days ago)
** Affects: lightproof (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
** Patch added: "lightproof_en.patch"
https://bugs.launchpad.net/bugs/2156777/+attachment/5977494/+files/lightproof_en.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156777
Title:
python warnings about syntax in lightproof_en
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightproof/+bug/2156777/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs