@classmethod
    def loadFromFileLike(cls, flo, format=None):
        """Load the object to a given file like object with the given protocol.
        """
        format = 'pickle' if format is None else format
        load = getattr(cls, format % "load_%s", None)
        if load is None:
            raise ValueError("Unknown format '%s'." % format)
        return load(flo)
dataset/ETHPy150Open pybrain/pybrain/pybrain/utilities.py/Serializable.loadFromFileLike/swapped operands of `%`