Skip to content

Commit

Permalink
use **kwargs for passing around encoding param
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabh Kumar committed Jan 2, 2019
1 parent 65cd59b commit e9c1954
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,17 @@ def load_dotenv(dotenv_path=None,
stream=None,
verbose=False,
override=False,
encoding='utf-8'):
**kwargs):
f = dotenv_path or stream or find_dotenv()
return DotEnv(f, verbose=verbose, encoding=encoding).set_as_environment_variables(override=override)
return DotEnv(f, verbose=verbose, **kwargs).set_as_environment_variables(override=override)


def dotenv_values(dotenv_path=None,
stream=None,
verbose=False,
encoding='utf-8'):
**kwargs):
f = dotenv_path or stream or find_dotenv()
return DotEnv(f, verbose=verbose, encoding=encoding).dict()
return DotEnv(f, verbose=verbose, **kwargs).dict()


def run_command(command, env):
Expand Down

0 comments on commit e9c1954

Please sign in to comment.