#NEWLINE# def _load_builtins( self , filtering , profile ) : #NEWLINE# #INDENT# 'loads up builtin functions, so they can be filtered.' #NEWLINE# class Wrapper ( ) : #NEWLINE# #INDENT# def __init__( self , name , plugin ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# self . plugin = plugin #NEWLINE# #UNINDENT# #UNINDENT# results = [ ] #NEWLINE# if ( 'B001' in filtering ) : #NEWLINE# #INDENT# extman = extension_loader . MANAGER #NEWLINE# blacklist = profile . get ( 'blacklist' ) #NEWLINE# if ( not blacklist ) : #NEWLINE# #INDENT# blacklist = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( node , tests ) in six . iteritems ( extman . blacklist ) : #NEWLINE# #INDENT# values = [ t for t in tests if ( t [ 'id' ] in filtering ) ] #NEWLINE# if values : #NEWLINE# #INDENT# blacklist [ node ] = values #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# setattr ( blacklisting . blacklist , '_test_id' , 'B001' ) #NEWLINE# setattr ( blacklisting . blacklist , '_checks' , blacklist . keys ( ) ) #NEWLINE# setattr ( blacklisting . blacklist , '_config' , blacklist ) #NEWLINE# results . append ( Wrapper ( 'blacklist' , blacklisting . blacklist ) ) #NEWLINE# #UNINDENT# return values