On Sat, Dec 26, 2015 at 10:51:14PM +0100, Christian Boltz wrote:
> the rule classes have lots of
> 
>         if self.all_foo:
>             foo_txt = _('ALL')
>         else:
>             foo_txt = self.foo
> 
> in logprof_header_localvars().
> 
> To avoid repeating this over and over, split it off to a
> logprof_value_or_all() function.
> 
> This function can handle 
> - str (will be returned unmodified
> - AARE (.regex will be used)
> - sets/lists/tuples (will be ' '.join()ed and sorted)
> 
> Other types are returned unmodified.
> 
> [ 51-split-off-logprof_value_or_all.diff ]

Acked-by: Steve Beattie <[email protected]>. Thanks!


-- 
Steve Beattie
<[email protected]>
http://NxNW.org/~steve/

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to