Invalid escape sequence at line 583

Bug #2117516 reported by Bill Thorsteinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libloc (Ubuntu)
New
Undecided
Unassigned

Bug Description

The following lines were found in my logs:

2025-07-22T10:31:03.711780+00:00 alibi location[1312071]: /usr/bin/location:583: SyntaxWarning: invalid escape sequence '\d'
2025-07-22T10:31:03.713116+00:00 alibi location[1312071]: m = re.match("^AS(\d+)$", object)

I have resolved this locally by prefixing the match string definition with 'r'

   m = re.match(r"^AS(\d+)$", object)

This resolved the problem locally.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: location 0.9.16-3.1build4 [modified: usr/bin/location]
ProcVersionSignature: Ubuntu 6.14.0-24.24-generic 6.14.6
Uname: Linux 6.14.0-24-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jul 22 17:31:15 2025
PackageArchitecture: all
ProcEnviron:
 LANG=en_CA.UTF-8
 LANGUAGE=en_CA:
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm
SourcePackage: libloc
UpgradeStatus: Upgraded to plucky on 2025-07-12 (10 days ago)

Revision history for this message
Bill Thorsteinson (billthor55) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.