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

Fix caching error in the push evaluator
This commit is contained in:
Richard van der Hoff 2017-07-05 11:10:53 +01:00 committed by GitHub
commit 3d31b39297

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()