#NEWLINE# def send_notify( title , message , sound , level ) : #NEWLINE# #INDENT# 'Send notification.' #NEWLINE# if ( ( title is not None ) and isinstance ( title , binary_type ) ) : #NEWLINE# #INDENT# title = title . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# if ( ( message is not None ) and isinstance ( message , binary_type ) ) : #NEWLINE# #INDENT# message = message . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# if ( ( level is not None ) and isinstance ( level , binary_type ) ) : #NEWLINE# #INDENT# level = level . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# def default_notify( title , message , sound ) : #NEWLINE# #INDENT# 'Default fallback notify.' #NEWLINE# DEFAULT_NOTIFY ( title , message , sound = sound ) . Show ( ) #NEWLINE# #UNINDENT# notify = get_notify ( ) #NEWLINE# growl = get_growl ( ) #NEWLINE# if growl_enabled ( ) : #NEWLINE# #INDENT# growl ( level , title , message , sound , default_notify ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( _PLATFORM in [ 'osx' , 'linux' ] ) : #NEWLINE# #INDENT# notify ( title , message , sound , default_notify ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( _PLATFORM == 'windows' ) : #NEWLINE# #INDENT# notify ( title , message , sound , windows_icons [ level ] , default_notify ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# default_notify ( title , message , sound )