#NEWLINE# def _handle_io( self , args , fileobj , result , passphrase = None , binary = False ) : #NEWLINE# #INDENT# 'Handle a call to GPG - pass input data, collect output data' #NEWLINE# p = self . _open_subprocess ( args , ( passphrase is not None ) ) #NEWLINE# if ( not binary ) : #NEWLINE# #INDENT# stdin = codecs . getwriter ( self . encoding ) ( p . stdin ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# stdin = p . stdin #NEWLINE# #UNINDENT# if passphrase : #NEWLINE# #INDENT# _write_passphrase ( stdin , passphrase , self . encoding ) #NEWLINE# #UNINDENT# writer = _threaded_copy_data ( fileobj , stdin ) #NEWLINE# self . _collect_output ( p , result , writer , stdin ) #NEWLINE# return result