#NEWLINE# def wxpaste( callback = None , logfile = None , extraoptions = '' , async = False ) : #NEWLINE# #INDENT# 'wxpaste - output a cutbuffer to stdout, returned as a string.' #NEWLINE# pm = proctools . get_procmanager ( ) #NEWLINE# command = ( '%s %s %s' % ( WXPASTE , WXPASTE_OPTIONS , extraoptions ) ) #NEWLINE# paste = pm . spawnpipe ( command , logfile = logfile , async = async ) #NEWLINE# rv = paste . read ( ) #NEWLINE# paste . close ( ) #NEWLINE# es = paste . wait ( ) #NEWLINE# if paste : #NEWLINE# #INDENT# return rv #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise proctools . ProcessError ( es )