Skip to content

Commit

Permalink
make default value for dialects safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Jan 31, 2015
1 parent 6b899db commit f2f4970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion master/buildbot/status/web/change_hook.py
Expand Up @@ -32,13 +32,16 @@ class ChangeHookResource(resource.Resource):
contentType = "text/html; charset=utf-8"
children = {}

def __init__(self, dialects={}):
def __init__(self, dialects=None):
"""
The keys of 'dialects' select a modules to load under
master/buildbot/status/web/hooks/
The value is passed to the module's getChanges function, providing
configuration options to the dialect.
"""
if dialects is None:
dialects = {}

self.dialects = dialects
self.request_dialect = None

Expand Down

0 comments on commit f2f4970

Please sign in to comment.