Your message dated Tue, 18 Mar 2025 00:02:03 +0200
with message-id
<ca+scei3zal0axh_oktptrm98swca4qgyjdf34f9zyrh+1rr...@mail.gmail.com>
and subject line Resolved in 0.9.17
has caused the Debian Bug report #1077691,
regarding location: SyntaxWarning is shown with python12
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1077691: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077691
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: location
Version: 0.9.16-3.1
Severity: normal
X-Debbugs-Cc: [email protected]
I am running Debian testing which now defaults to python 3.12 and it looks like
the location has some issues with that:
location lookup 142.251.36.195
/usr/bin/location:583: SyntaxWarning: invalid escape sequence '\d'
m = re.match("^AS(\d+)$", object)
142.251.36.195:
Network : 142.250.0.0/15
Country : United States of America
Autonomous System : AS15169 - Google LLC
The SyntaxWarning is something that I have not seen in Debian 12.
There is some explanation in the python 3.12 release notes
https://docs.python.org/3/whatsnew/3.12.html :
"
A backslash-character pair that is not a valid escape sequence now generates a
SyntaxWarning, instead of DeprecationWarning. For example,
re.compile("\d+\.\d+") now emits a SyntaxWarning ("\d" is an invalid escape
sequence, use raw strings for regular expression: re.compile(r"\d+\.\d+")). In
a future Python version, SyntaxError will eventually be raised, instead of
SyntaxWarning. (Contributed by Victor Stinner in gh-98401.)
"
This is still a warning, so I guess it is still fine. It might break however
some scripts that parse the output of location.
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.9.10-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8),
LANGUAGE=es_ES:es
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages location depends on:
ii python3 3.12.4-1
ii python3-location 0.9.16-3.1+b2
location recommends no packages.
location suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 0.9.17-1
The escape sequence syntax has been fixed in upstream commit 42377db,
which is included in version 0.9.17. This release was just uploaded to
unstable.
--- End Message ---