@task<EOL>def send_message(message, pipe='<STR_LIT>'):
if pipe not in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>pipe = pipe.upper()<EOL><DEDENT>pipe_path = PUBLIC_PIPE if pipe == '<STR_LIT>' else PRIVATE_PIPE<EOL>pipeout = open(pipe_path, '<STR_LIT:a>')<EOL>pipeout.write('<STR_LIT>' % message)<EOL>pipeout.close()<EOL>
writes message to pipe