[Bug 2083366] Re: SyntaxWarnings in checkrestart
Hans Joachim Desserud
2083366 at bugs.launchpad.net
Thu Oct 10 15:32:40 UTC 2024
*** This bug is a duplicate of bug 2061374 ***
https://bugs.launchpad.net/bugs/2061374
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
This particular bug has already been reported and is a duplicate of bug
2061374, so it is being marked as such. Please look at the other bug
report to see if there is any missing information that you can provide,
or to see if there is a workaround for the bug. Additionally, any
further discussion regarding the bug should occur in the other report.
Feel free to continue to report any other bugs you may find.
** This bug has been marked a duplicate of bug 2061374
Python SyntaxWarnings
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-goodies in Ubuntu.
https://bugs.launchpad.net/bugs/2083366
Title:
SyntaxWarnings in checkrestart
Status in debian-goodies package in Ubuntu:
New
Bug description:
After upgrading from 22.04 to 24.04, checkrestart now logs the
following on every invocation:
/usr/sbin/checkrestart:222: SyntaxWarning: invalid escape sequence '\S'
m = re.match('^diversion by (\S+) (from|to): (.*)$', line)
/usr/sbin/checkrestart:398: SyntaxWarning: invalid escape sequence '\('
if re.compile("DEL").search(last) or re.compile("\(deleted\)").search(data) or re.compile("\(path inode=[0-9]+\)$").search(data):
/usr/sbin/checkrestart:398: SyntaxWarning: invalid escape sequence '\('
if re.compile("DEL").search(last) or re.compile("\(deleted\)").search(data) or re.compile("\(path inode=[0-9]+\)$").search(data):
/usr/sbin/checkrestart:430: SyntaxWarning: invalid escape sequence '\s'
if re.compile("\s\(deleted\)$").search(fname):
/usr/sbin/checkrestart:437: SyntaxWarning: invalid escape sequence '\s'
data = re.split('\s+', output.strip('\n'), 3)
/usr/sbin/checkrestart:440: SyntaxWarning: invalid escape sequence '\s'
if re.compile("\s\(deleted\)$").search(f):
/usr/sbin/checkrestart:464: SyntaxWarning: invalid escape sequence '\.'
if ( f.startswith('/lib/') or f.startswith('/usr/lib/') ) and re.compile("\.so[\d.]+$"):
/usr/sbin/checkrestart:468: SyntaxWarning: invalid escape sequence '\+'
f = re.compile("\+").sub("\+", f)
/usr/sbin/checkrestart:468: SyntaxWarning: invalid escape sequence '\+'
f = re.compile("\+").sub("\+", f)
/usr/sbin/checkrestart:469: SyntaxWarning: invalid escape sequence '\d'
f = re.compile(".so[\d.]+$").sub(".so.*", f)
/usr/sbin/checkrestart:470: SyntaxWarning: invalid escape sequence '\.'
f = re.compile("\.").sub("\.", f)
/usr/sbin/checkrestart:470: SyntaxWarning: invalid escape sequence '\.'
f = re.compile("\.").sub("\.", f)
/usr/sbin/checkrestart:594: SyntaxWarning: invalid escape sequence '\('
if re.compile("\(path inode=[0-9]+\)$").search(f):
/usr/sbin/checkrestart:651: SyntaxWarning: invalid escape sequence '\d'
re_uids = re.compile('Uid:\t(\d+)\t(\d+)\t(\d+)\t(\d+)$')
/usr/sbin/checkrestart:764: SyntaxWarning: invalid escape sequence '\('
return re.sub('( \(deleted\)|.dpkg-new).*$','',f)
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: debian-goodies 0.88.1ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Oct 1 14:37:36 2024
PackageArchitecture: all
SourcePackage: debian-goodies
UpgradeStatus: Upgraded to noble on 2024-09-30 (1 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-goodies/+bug/2083366/+subscriptions
More information about the foundations-bugs
mailing list