def save_config(self, filename=None):
        """Saves config to a file."""
        if not filename:
            filename = self._filename
        org_cfg = ConfigObject(filename)

        fileobj = open(filename, 'w')
        for key, _unused_value in DEFAULT_CONFIG:
            try:
                if self._dirty_keys in key:
                    value = self._dict[key]
                else:
                    value = org_cfg.get(key, None)
                fileobj.write('%s = %r\n' % (key, value))
            except (KeyError, ValueError, TypeError), exc:
                fileobj.write('# '+str(exc))
        fileobj.close()
        self._dirty_keys.clear()
dataset/ETHPy150Open thesamet/webilder/src/webilder/config.py/ConfigObject.save_config/swapped operands of `in`