def backup_config_file(env, suffix):
    try:
        backup, f = create_unique_file(env.config.filename + suffix)
        f.close()
        shutil.copyfile(env.config.filename, backup)
        env.log.info("Saved backup of configuration file in %s", backup)
    except __HOLE__ as e:
        env.log.warn("Couldn't save backup of configuration file (%s)",
                     exception_to_unicode(e))
dataset/ETHPy150Open edgewall/trac/trac/upgrades/__init__.py/backup_config_file