

def write(self):
    'Write the configuration to the last file opened using the\n        :meth:`read` method.\n\n        Return True if the write finished successfully, False otherwise.\n        '
    if (self.filename is None):
        return False
    try:
        with open(self.filename, 'w') as fd:
            PythonConfigParser.write(self, fd)
    except IOError:
        Logger.exception(('Unable to write the config <%s>' % self.filename))
        return False
    return True

dataset/ETHPy150Open kivy/kivy/kivy/config.py ConfigParser.write/original