Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def write_settings(settings, overwrite):
filename = SETTINGS_FILE
settings_json = SettingsSerializer.to_json_string(settings)
write_with_prompt(
filename=filename,
mode='w',
content=settings_json,
overwrite=overwrite)