From e525e40043d44ee7613474715212f1b015f0bb27 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 5 Dec 2018 14:28:18 +0000 Subject: [PATCH] Use Starlette 'environ' when reading config --- starlette/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starlette/config.py b/starlette/config.py index c3f3b0a1..8adcc684 100644 --- a/starlette/config.py +++ b/starlette/config.py @@ -48,7 +48,7 @@ environ = Environ() class Config: def __init__( - self, env_file: str = None, environ: typing.Mapping[str, str] = os.environ + self, env_file: str = None, environ: typing.Mapping[str, str] = environ ) -> None: self.environ = environ self.file_values = {} # type: typing.Dict[str, str]