#NEWLINE# def supports_color( ) : #NEWLINE# #INDENT# "\n    Returns True if the running system's terminal supports color, and False\n    otherwise.\n    " #NEWLINE# unsupported_platform = ( sys . platform in ( 'win32' , 'Pocket PC' ) ) #NEWLINE# is_a_tty = ( hasattr ( sys . stdout , 'isatty' ) and sys . stdout . isatty ( ) ) #NEWLINE# if ( unsupported_platform or ( not is_a_tty ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True