apport-bug: cli reports syntax warnings to user

Bug #2060962 reported by Ravi Kant Sharma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Invalid
Undecided
Unassigned
apport-symptoms (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Apport version: 2.28.0-0ubuntu1
Ubuntu-Server 24.04 Beta amd64 (20240410.1)

/usr/share/apport/symptoms/_audio_data.py:123: SyntaxWarning: invalid escape sequence '\['
  m = re.search('Pin Default 0x(.*?): \[(.*?)\] (.*?) at (.*?) (.*)', line)
/usr/share/apport/symptoms/_audio_data.py:148: SyntaxWarning: invalid escape sequence '\d'
  m = re.search(' (\d+) \[(\w+)\s*\]: (.+)', card)
/usr/share/apport/symptoms/_audio_data.py:162: SyntaxWarning: invalid escape sequence '\w'
  m = re.match('^(\w+) #(\d+)', line)
/usr/share/apport/symptoms/_audio_data.py:171: SyntaxWarning: invalid escape sequence '\w'
  m = re.match('^\t(\w+.*?): (.*)', line)
/usr/share/apport/symptoms/_audio_data.py:177: SyntaxWarning: invalid escape sequence '\w'
  m = re.match('^\t(\w+.*?):', line)
/usr/share/apport/symptoms/_audio_data.py:182: SyntaxWarning: invalid escape sequence '\w'
  m = re.match('^\t\t(\w+.*?) = "(.*)"', line)
/usr/share/apport/symptoms/_audio_mixercontrol.py:29: SyntaxWarning: invalid escape sequence '\['
  m = re.search("\[([\-0-9.]+)dB\]", s)
/usr/share/apport/symptoms/_audio_mixercontrol.py:34: SyntaxWarning: invalid escape sequence '\['
  if re.search("\[on\]", s):
/usr/share/apport/symptoms/_audio_mixercontrol.py:36: SyntaxWarning: invalid escape sequence '\['
  if re.search("\[off\]", s):
/usr/share/apport/symptoms/_audio_mixercontrol.py:38: SyntaxWarning: invalid escape sequence '\d'
  m = re.search(" ?(\d+) ", s)
/usr/share/apport/symptoms/_audio_mixercontrol.py:41: SyntaxWarning: invalid escape sequence '\['
  m = re.search("\[([\-0-9.]+)%\]", s)

Related branches

Revision history for this message
Ravi Kant Sharma (ravi-sharma) wrote :
Simon Chopin (schopin)
Changed in apport (Ubuntu):
status: New → Invalid
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport-symptoms - 0.25

---------------
apport-symptoms (0.25) noble; urgency=medium

  * d/control: Fix Vcs field from bzr to git
  * Fix a flood of warnings when on Python 3.12 (LP: #2060962)

 -- Simon Chopin <email address hidden> Fri, 12 Apr 2024 11:54:26 +0200

Changed in apport-symptoms (Ubuntu):
status: New → Fix Released
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.