#NEWLINE# def _ensure_write_bufsize( self ) : #NEWLINE# #INDENT# if ( self . _write_bufsize is not None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# file_upload_params = dxpy . api . project_describe ( self . project , { #NEWLINE# #INDENT# 'fields' : { #NEWLINE# #INDENT# 'fileUploadParameters' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) [ 'fileUploadParameters' ] #NEWLINE# self . _empty_last_part_allowed = file_upload_params [ 'emptyLastPartAllowed' ] #NEWLINE# self . _write_bufsize = _get_write_buf_size ( self . _write_buffer_size_hint , file_upload_params , self . _expected_file_size , self . _file_is_mmapd )