#NEWLINE# def communicate( self , **kwargs ) : #NEWLINE# #INDENT# if ( kwargs . get ( 'input' ) and isinstance ( kwargs [ 'input' ] , basestring ) ) : #NEWLINE# #INDENT# kwargs [ 'input' ] = kwargs [ 'input' ] . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# return super ( Proc , self ) . communicate ( ** kwargs )