Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stream kwarg of read_env() #114

Merged
merged 1 commit into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions environs.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ def __repr__(self) -> _StrType:
def read_env(
path: _StrType = None,
recurse: _BoolType = True,
stream: _StrType = None,
verbose: _BoolType = False,
override: _BoolType = False,
) -> DotEnv:
Expand Down Expand Up @@ -274,11 +273,11 @@ def read_env(
for dirname in _walk_to_root(start):
check_path = os.path.join(dirname, env_name)
if os.path.exists(check_path):
return load_dotenv(check_path, stream=stream, verbose=verbose, override=override)
return load_dotenv(check_path, verbose=verbose, override=override)
else:
if path is None:
start = os.path.join(start, ".env")
return load_dotenv(start, stream=stream, verbose=verbose, override=override)
return load_dotenv(start, verbose=verbose, override=override)

@contextlib.contextmanager
def prefixed(self, prefix: _StrType) -> typing.Iterator["Env"]:
Expand Down