#NEWLINE# def has_wget( ) : #NEWLINE# #INDENT# cmd = [ 'wget' , '--version' ] #NEWLINE# with open ( os . path . devnull , 'wb' ) as devnull : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# subprocess . check_call ( cmd , stdout = devnull , stderr = devnull ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True