config = { "use_sqlite": True , "mysql_server": "172.17.0.2" , "mysql_user": "wikipedia" , "mysql_password": "wikipediastuff" , "mysql_database": "wikipedia_link_db" } if(config["use_sqlite"]): config["sql_method"] = "sqlite" else: config["sql_method"] = "mysql"