From 1cdbb90f22629c35091730b661285b4a487894f5 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Thu, 20 Dec 2018 20:33:27 +0100 Subject: [PATCH] Get rid of map --- src/network/bmproto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index 8b96bb38..bdebe0fb 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -282,8 +282,8 @@ class BMProto(AdvancedDispatcher, ObjectTracker): now = time.time() if now < self.skipUntil: return True - for i in map(str, items): - self.pendingUpload[i] = now + for i in items: + self.pendingUpload[str(i)] = now return True def _command_inv(self, dandelion=False):