#NEWLINE# def shell_out( cmd , stderr = STDOUT , cwd = None ) : #NEWLINE# #INDENT# 'Friendlier version of check_output.' #NEWLINE# if ( stderr is None ) : #NEWLINE# #INDENT# from os import getcwd #NEWLINE# cwd = getcwd ( ) #NEWLINE# #UNINDENT# out = check_output ( cmd , cwd = cwd , stderr = stderr , universal_newlines = True ) #NEWLINE# return _clean_output ( out )