Avoid another .keys() call

This commit is contained in:
Jean-Paul Calderone 2019-03-11 12:29:37 -04:00
parent c83749311f
commit dd7cb99ef4
1 changed files with 1 additions and 1 deletions

View File

@ -1913,7 +1913,7 @@ class Downloader(QueueMixin, WriteFileMixin):
def _filter_batch_to_deque(ign):
ITEM_QUEUE.log(items=self._deque)
SCAN_BATCH.log(batch=scan_batch)
for relpath_u in scan_batch.keys():
for relpath_u in scan_batch:
file_node, metadata = max(scan_batch[relpath_u], key=lambda x: x[1]['version'])
if self._should_download(relpath_u, metadata['version'], file_node.get_readonly_uri()):