'read and drop all CR and LF characters'

def read(self, size):

    chunks = []
    count = 0
    while (count < size):
        chunk = self.file.read((size - count))
        if (len(chunk) == 0):
            break
        chunk = chunk.replace((CR + LF), '')
        if (CR in chunk):
            chunk = chunk.replace(CR, '')
        if (LF in chunk):
            chunk = chunk.replace(LF, '')
        count += len(chunk)
        chunks.append(chunk)
    return ''.join(chunks)
