mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 05:42:11 -04:00
Replace iteritems/itervalues/iterkeys with native versions. (#7692)
This commit is contained in:
parent
2d11ea385c
commit
bd6dc17221
47 changed files with 184 additions and 263 deletions
|
@ -21,8 +21,6 @@ import threading
|
|||
from typing import Any, Tuple, Union, cast
|
||||
from weakref import WeakValueDictionary
|
||||
|
||||
from six import itervalues
|
||||
|
||||
from prometheus_client import Gauge
|
||||
from typing_extensions import Protocol
|
||||
|
||||
|
@ -281,7 +279,7 @@ class Cache(object):
|
|||
def invalidate_all(self):
|
||||
self.check_thread()
|
||||
self.cache.clear()
|
||||
for entry in itervalues(self._pending_deferred_cache):
|
||||
for entry in self._pending_deferred_cache.values():
|
||||
entry.invalidate()
|
||||
self._pending_deferred_cache.clear()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue