#NEWLINE# @ staticmethod #NEWLINE# def _bytes_to_sector( bsize , sectorlength = SECTOR_LENGTH ) : #NEWLINE# #INDENT# 'Given a size in bytes, return how many sections of length sectorlen are required to contain it.\n        This is equivalent to ceil(bsize/sectorlen), if Python would use floating\n        points for division, and integers for ceil(), rather than the other way around.' #NEWLINE# ( sectors , remainder ) = divmod ( bsize , sectorlength ) #NEWLINE# return ( sectors if ( remainder == 0 ) else ( sectors + 1 ) )