mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 12:58:07 +00:00
utils: abbreviate delta for Python 3.12 argparse
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
This commit is contained in:
parent
6336465edf
commit
0acc138712
@ -245,18 +245,18 @@ Filtering options:
|
|||||||
#
|
#
|
||||||
# https://github.com/python/cpython/pull/103372
|
# https://github.com/python/cpython/pull/103372
|
||||||
patches = [(
|
patches = [(
|
||||||
' -f, --file FILE search FILE for AppArmor messages',
|
', --file FILE ',
|
||||||
' -f FILE, --file FILE search FILE for AppArmor messages',
|
' FILE, --file FILE',
|
||||||
), (
|
), (
|
||||||
' -s, --since-days NUM show stats for last NUM days (can be used alone or with',
|
', --since-days NUM show stats for last NUM days (can be used alone or with',
|
||||||
' -s NUM, --since-days NUM\n'
|
' NUM, --since-days NUM\n'
|
||||||
+ ' show stats for last NUM days (can be used alone or with',
|
+ ' show stats for last NUM days (can be used alone or with',
|
||||||
), (
|
), (
|
||||||
' -u, --user USER user to drop privileges to when not using sudo',
|
', --user USER ',
|
||||||
' -u USER, --user USER user to drop privileges to when not using sudo',
|
' USER, --user USER',
|
||||||
), (
|
), (
|
||||||
' -w, --wait NUM wait NUM seconds before displaying notifications (with',
|
', --wait NUM ',
|
||||||
' -w NUM, --wait NUM wait NUM seconds before displaying notifications (with',
|
' NUM, --wait NUM',
|
||||||
)]
|
)]
|
||||||
for patch in patches:
|
for patch in patches:
|
||||||
expected_output_2 = expected_output_2.replace(patch[0], patch[1])
|
expected_output_2 = expected_output_2.replace(patch[0], patch[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user