#NEWLINE# def required_modules_error( name , docstring ) : #NEWLINE# #INDENT# '\n    Pretty print error messages in critical salt modules which are\n    missing deps not always in stdlib such as win32api on windows.\n    ' #NEWLINE# modules = required_module_list ( msg ) #NEWLINE# if ( not modules ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# filename = os . path . basename ( name ) . split ( '.' ) [ 0 ] #NEWLINE# msg = "'{0}' requires these python modules: {1}" #NEWLINE# return msg . format ( filename , ', ' . join ( modules ) )