ui.py: bad regexp flag
Bug #1666244 reported by
Jakub Wilk
This bug report is a duplicate of:
Bug #1661766: aa-genprof crashes on start due to python 3.6 bug.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
The get_translated_
the following code:
if re.search(
return re.search(
Using re.LOCALE for Unicode regexps has never worked correctly.
This feature was deprecated in Python 3.5, and removed in Python 3.6.
If you run get_translated_
ValueError: cannot use LOCALE flag with a str pattern
This bug was found using pydiatra:
http://
To post a comment you must log in.
We are already aware of this, see bug 1661766. I already sent a patch for review, so it should be fixed in bzr soon.
Nevertheless, thanks for the report!