From b7357e162491865b5e9f4544ffb0f8cd40ae3d5c Mon Sep 17 00:00:00 2001 From: dtomlinson Date: Mon, 13 Jan 2020 00:37:55 +0000 Subject: [PATCH] updating documentation in library.py --- src/panaetius/library.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/panaetius/library.py b/src/panaetius/library.py index 039363b..df854ef 100644 --- a/src/panaetius/library.py +++ b/src/panaetius/library.py @@ -58,22 +58,19 @@ def set_config( Example: - `config.toml` has the following attribute set: - ``` + `config.toml` has the following attribute set:: [package.users] auth = ['user1', 'user2'] - ``` If set as an environment variable you can pass this list as a string - and set check=list: + and set check=list:: - Environment variable: - PACKAGE_USERS_AUTH = "['user1', 'user2']" + Environment variable: + PACKAGE_USERS_AUTH = "['user1', 'user2']" - Usage in code: - ```python - set_config(CONFIG, 'users.auth', check=list) - ``` + Usage in code:: + + set_config(CONFIG, 'users.auth', check=list) """ config_var = key.lower().replace('.', '_') if check is None: