#NEWLINE# def createBaseService( config , settings ) : #NEWLINE# #INDENT# root_service = CarbonRootService ( ) #NEWLINE# root_service . setName ( settings . program ) #NEWLINE# if settings . USE_WHITELIST : #NEWLINE# #INDENT# from carbon.regexlist import WhiteList , BlackList #NEWLINE# WhiteList . read_from ( settings . whitelist ) #NEWLINE# BlackList . read_from ( settings . blacklist ) #NEWLINE# #UNINDENT# from carbon.instrumentation import InstrumentationService #NEWLINE# service = InstrumentationService ( ) #NEWLINE# service . setServiceParent ( root_service ) #NEWLINE# return root_service