summary refs log tree commit diff
path: root/synapse/util/caches/treecache.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-06-17 14:38:15 +0100
committerErik Johnston <erik@matrix.org>2020-06-17 14:38:15 +0100
commit8ba10868011ad7d4a48f5d61cbe3326dc8d4ea47 (patch)
tree8c9a40281198725bb690889a1d659104d1c7f70e /synapse/util/caches/treecache.py
parentMerge branch 'release-v1.15.1' into matrix-org-hotfixes (diff)
parentAdd support for using rust-python-jaeger-reporter (#7697) (diff)
downloadsynapse-8ba10868011ad7d4a48f5d61cbe3326dc8d4ea47.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/util/caches/treecache.py')
-rw-r--r--synapse/util/caches/treecache.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/util/caches/treecache.py b/synapse/util/caches/treecache.py

index 2ea4e4e911..ecd9948e79 100644 --- a/synapse/util/caches/treecache.py +++ b/synapse/util/caches/treecache.py
@@ -1,7 +1,5 @@ from typing import Dict -from six import itervalues - SENTINEL = object() @@ -81,7 +79,7 @@ def iterate_tree_cache_entry(d): can contain dicts. """ if isinstance(d, dict): - for value_d in itervalues(d): + for value_d in d.values(): for value in iterate_tree_cache_entry(value_d): yield value else: