14d5404240
- add python3-drop-re-locale.patch: remove deprecated re.LOCALE flag in Python UI as it was dropped from Python 3.6 OBS-URL: https://build.opensuse.org/request/show/458503 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=169
16 lines
695 B
Diff
16 lines
695 B
Diff
Index: apparmor-2.11.0/utils/apparmor/ui.py
|
|
===================================================================
|
|
--- apparmor-2.11.0.orig/utils/apparmor/ui.py
|
|
+++ apparmor-2.11.0/utils/apparmor/ui.py
|
|
@@ -64,8 +64,8 @@ def get_translated_hotkey(translated, cm
|
|
msg = 'PromptUser: ' + _('Invalid hotkey for')
|
|
|
|
# Originally (\S) was used but with translations it would not work :(
|
|
- if re.search('\((\S+)\)', translated, re.LOCALE):
|
|
- return re.search('\((\S+)\)', translated, re.LOCALE).groups()[0]
|
|
+ if re.search('\((\S+)\)', translated):
|
|
+ return re.search('\((\S+)\)', translated).groups()[0]
|
|
else:
|
|
if cmsg:
|
|
raise AppArmorException(cmsg)
|