HexEdit/HexEditChunks.py

changeset 6891
93f82da09f22
parent 6645
ad476851d7e0
equal deleted inserted replaced
6890:26c1042f2eec 6891:93f82da09f22
349 @return flag indicating success 349 @return flag indicating success
350 @rtype bool 350 @rtype bool
351 """ 351 """
352 if pos < 0 or pos >= self.__size: 352 if pos < 0 or pos >= self.__size:
353 # position is out of range, do nothing 353 # position is out of range, do nothing
354 return 354 return False
355 355
356 chunkIdx = self.__getChunkIndex(pos) 356 chunkIdx = self.__getChunkIndex(pos)
357 chunk = self.__chunks[chunkIdx] 357 chunk = self.__chunks[chunkIdx]
358 posInChunk = pos - chunk.absPos 358 posInChunk = pos - chunk.absPos
359 chunk.data.pop(posInChunk) 359 chunk.data.pop(posInChunk)

eric ide

mercurial