Get rid of map

This commit is contained in:
Peter Šurda 2018-12-20 20:33:27 +01:00
parent 3a4eed0f8b
commit 1cdbb90f22
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
now = time.time() now = time.time()
if now < self.skipUntil: if now < self.skipUntil:
return True return True
for i in map(str, items): for i in items:
self.pendingUpload[i] = now self.pendingUpload[str(i)] = now
return True return True
def _command_inv(self, dandelion=False): def _command_inv(self, dandelion=False):