From 0f477df86a8c953cb5e4df0bd90266345140b114 Mon Sep 17 00:00:00 2001 From: Jeroendevr Date: Wed, 24 May 2023 11:13:36 +0200 Subject: [PATCH] Config from Data Files to match from_file API In the API docs using a TOML file to load config is referred to as https://flask.palletsprojects.com/en/2.3.x/api/#flask.Config.from_file To keep docs consistent a small change to the config docs. --- docs/config.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config.rst b/docs/config.rst index 3c06b29c..7828fb92 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -410,8 +410,8 @@ from a TOML file: .. code-block:: python - import toml - app.config.from_file("config.toml", load=toml.load) + import tomllib + app.config.from_file("config.toml", load=tomllib.load, text=False) Or from a JSON file: