mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01: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
1 changed files with 8 additions and 8 deletions
|
@ -245,18 +245,18 @@ Filtering options:
|
|||
#
|
||||
# https://github.com/python/cpython/pull/103372
|
||||
patches = [(
|
||||
' -f, --file FILE search FILE for AppArmor messages',
|
||||
' -f FILE, --file FILE search FILE for AppArmor messages',
|
||||
', --file FILE ',
|
||||
' FILE, --file FILE',
|
||||
), (
|
||||
' -s, --since-days NUM show stats for last NUM days (can be used alone or with',
|
||||
' -s NUM, --since-days NUM\n'
|
||||
', --since-days NUM show stats for last NUM days (can be used alone or with',
|
||||
' NUM, --since-days NUM\n'
|
||||
+ ' show stats for last NUM days (can be used alone or with',
|
||||
), (
|
||||
' -u, --user USER user to drop privileges to when not using sudo',
|
||||
' -u USER, --user USER user to drop privileges to when not using sudo',
|
||||
', --user USER ',
|
||||
' USER, --user USER',
|
||||
), (
|
||||
' -w, --wait NUM wait NUM seconds before displaying notifications (with',
|
||||
' -w NUM, --wait NUM wait NUM seconds before displaying notifications (with',
|
||||
', --wait NUM ',
|
||||
' NUM, --wait NUM',
|
||||
)]
|
||||
for patch in patches:
|
||||
expected_output_2 = expected_output_2.replace(patch[0], patch[1])
|
||||
|
|
Loading…
Add table
Reference in a new issue