#NEWLINE# def _body__set( self , value ) : #NEWLINE# #INDENT# if ( value is None ) : #NEWLINE# #INDENT# value = b'' #NEWLINE# #UNINDENT# if ( not isinstance ( value , bytes ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'You can only set Request.body to bytes (not %r)' % type ( value ) ) ) #NEWLINE# #UNINDENT# if ( not http_method_probably_has_body . get ( self . method , True ) ) : #NEWLINE# #INDENT# if ( not value ) : #NEWLINE# #INDENT# self . content_length = None #NEWLINE# self . body_file_raw = io . BytesIO ( ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# self . content_length = len ( value ) #NEWLINE# self . body_file_raw = io . BytesIO ( value ) #NEWLINE# self . is_body_seekable = True