Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brodan committed Dec 12, 2022
1 parent feb4392 commit 0bd6e65
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions dj_database_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@


def config(
env=DEFAULT_ENV,
default=None,
engine=None,
conn_max_age=0,
ssl_require=False,
test_options={},
env=DEFAULT_ENV, default=None, engine=None, conn_max_age=0, ssl_require=False, test_options={}
):
"""Returns configured DATABASE dictionary from DATABASE_URL."""
s = os.environ.get(env, default)
Expand All @@ -63,12 +58,7 @@ def config(


def parse(
url,
engine=None,
conn_max_age=0,
conn_health_checks=False,
ssl_require=False,
test_options={},
url, engine=None, conn_max_age=0, conn_health_checks=False, ssl_require=False, test_options={}
):
"""Parses a database URL."""

Expand Down Expand Up @@ -166,4 +156,4 @@ def parse(
if engine:
parsed_config["ENGINE"] = engine

return parsed_config
return parsed_config

0 comments on commit 0bd6e65

Please sign in to comment.