Skip to content

Commit

Permalink
change Config.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Fedoruk authored and Amanit committed Jan 2, 2019
1 parent 74f0510 commit 0b728ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

class Config(dict):
def __init__(self, defaults=None, load_env=True, keep_alive=None):
super().__init__(DEFAULT_CONFIG)
super().__init__(defaults or {})
defaults = defaults or {}
super().__init__({**DEFAULT_CONFIG, **defaults})

self.LOGO = BASE_LOGO

Expand Down

0 comments on commit 0b728ad

Please sign in to comment.