SyntaxWarning: invalid escape sequence '\.'
Bug #2059412 reported by
Nathan Teodosio
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Wishlist
|
Nathan Teodosio |
Bug Description
Installing software-properties gives
--->
/usr/lib/
elif re.match(
<---
Marked as "wishlist" importance because Python still passes that to re.match as '\.' instead of '.', so the behavior is correct, as can be confirmed with
--->
% python3 -c 'print("\.")'
<string>:1: SyntaxWarning: invalid escape sequence '\.'
\.
<---
In a future Python version they will be eventually a SyntaxError[1].
[1] https:/
Related branches
~nteodosio/software-properties:escape-syntax
- Calvin Mwadime Makokha (community): Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 13 lines (+1/-1)1 file modifiedsoftwareproperties/gtk/DialogMirror.py (+1/-1)
description: | updated |
description: | updated |
Changed in software-properties (Ubuntu): | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
This bug was fixed in the package software-properties - 0.99.48
---------------
software-properties (0.99.48) noble; urgency=medium
* Fix Python's warning of invalid escape sequence (LP: #2059412).
* Make pressing enter on close button of out-of-date cache dialog trigger
the close button, not the reload button (LP: #2061978).
* Limit the comments in 'other software' tab to a single line (LP: #2060915).
* apt-add-repository --list now displays deb822 sources (LP: #2060331).
-- Nathan Pratta Teodosio <email address hidden> Thu, 18 Apr 2024 09:17:51 +0200