mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
buildtools: Prefer ‘x not in y’ to ‘not x in y’
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
6df81630af
commit
8d61d3f8e0
@ -82,7 +82,7 @@ def ADD_INIT_FUNCTION(bld, subsystem, target, init_function):
|
||||
return
|
||||
bld.ASSERT(subsystem is not None, "You must specify a subsystem for init_function '%s'" % init_function)
|
||||
cache = LOCAL_CACHE(bld, 'INIT_FUNCTIONS')
|
||||
if not subsystem in cache:
|
||||
if subsystem not in cache:
|
||||
cache[subsystem] = []
|
||||
cache[subsystem].append( { 'TARGET':target, 'INIT_FUNCTION':init_function } )
|
||||
Build.BuildContext.ADD_INIT_FUNCTION = ADD_INIT_FUNCTION
|
||||
|
Loading…
x
Reference in New Issue
Block a user