<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def readInfo(stream):
 """ Read previously-written information about diffs. """

        try:
            for line in stream:
                (toUUID, fromUUID, size) = line.split()
                try:
                    size = int(size)
                except Exception:
                    logger.warning("Bad size: %s", size)
                    continue
                logger.debug("diff info: %s %s %d", toUUID, fromUUID, size)
                Diff.theKnownSizes[toUUID][fromUUID] = size
        except Exception as error:
            logger.warn("Can't read .bs info file (%s)", error)