def saveToFileLike(self, flo, format=None, **kwargs):
        """Save the object to a given file like object in the given format.
        """
        format = 'pickle' if format is None else format
        save = getattr(self, "save_%s" % format, None)
        if save is None:
            raise ValueError(format % "Unknown format '%s'.")
        save(flo, **kwargs)
dataset/ETHPy150Open pybrain/pybrain/pybrain/utilities.py/Serializable.saveToFileLike/swapped operands of `%`