Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501fd85 commit e33f702Copy full SHA for e33f702
1 file changed
lib/utils/hashdb.py
@@ -86,13 +86,13 @@ def flush(self, forced=False):
86
return
87
88
self._cache_lock.acquire()
89
- items = self._write_cache.items()
90
- self._write_cache.clear()
+ _ = self._write_cache
+ self._write_cache = {}
91
self._cache_lock.release()
92
93
try:
94
self.beginTransaction()
95
- for hash_, value in items:
+ for hash_, value in _.items():
96
while True:
97
98
0 commit comments