Merge pull request #2332 from matrix-org/rav/fix_pushes

Fix caching error in the push evaluator
pull/3391/head
Richard van der Hoff 2017-07-05 11:10:53 +01:00 committed by GitHub
commit 3d31b39297
1 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,9 @@ def _glob_to_re(glob, word_boundary):
return re.compile(r, flags=re.IGNORECASE)
def _flatten_dict(d, prefix=[], result={}):
def _flatten_dict(d, prefix=[], result=None):
if result is None:
result = {}
for key, value in d.items():
if isinstance(value, basestring):
result[".".join(prefix + [key])] = value.lower()