def apropos(key):
 def callback(path, modname, desc):
  if (modname[(-9):] == '.__init__'):
   modname = (modname[:(-9)] + ' (package)')
  print modname, (desc and ('- ' + desc))
 def onerror(modname):
  pass
 with warnings.catch_warnings():
  warnings.filterwarnings('ignore')
  ModuleScanner().run(callback, key, onerror=onerror)

def apropos ( key ) : def callback ( path , modname , desc ) : if ( modname [ ( - 9 ) : ] == '.__init__' ) : modname = ( modname [ : ( - 9 ) ] + ' (package)' ) print modname , ( desc and ( '- ' + desc ) ) def onerror ( modname ) : pass with warnings . catch_warnings ( ) : warnings . filterwarnings ( 'ignore' ) ModuleScanner ( ) . run ( callback , key , onerror = onerror )
print all the one-line module summaries that contain a substring .