#NEWLINE# def _send_data_part( data , connection ) : #NEWLINE# #INDENT# if hasattr ( data , 'read' ) : #NEWLINE# #INDENT# while 1 : #NEWLINE# #INDENT# binarydata = data . read ( 100000 ) #NEWLINE# if ( binarydata == '' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# connection . send ( binarydata ) #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# connection . send ( bytes ( data , 'UTF-8' ) ) #NEWLINE# return