def onlyif_any_cmd_exists(*commands):
 warnings.warn('The function `onlyif_any_cmd_exists` is deprecated since IPython 4.0', DeprecationWarning, stacklevel=2)
 for cmd in commands:
  if which(cmd):
   return null_deco
 return skip('This test runs only if one of the commands {0} is installed'.format(commands))

def onlyif_any_cmd_exists ( * commands ) : warnings . warn ( 'The function `onlyif_any_cmd_exists` is deprecated since IPython 4.0' , DeprecationWarning , stacklevel = 2 ) for cmd in commands : if which ( cmd ) : return null_deco return skip ( 'This test runs only if one of the commands {0} is installed' . format ( commands ) )
decorator to skip test unless at least one of commands is found .