From e80cd4748eb8d9b1b292da847172a9613f18face Mon Sep 17 00:00:00 2001 From: Bruno Wagner Date: Wed, 18 Mar 2015 16:08:44 -0300 Subject: Changed map to list comprehension --- service/pixelated/resources/sync_info_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/pixelated/resources/sync_info_resource.py b/service/pixelated/resources/sync_info_resource.py index 5aa94218..791c5add 100644 --- a/service/pixelated/resources/sync_info_resource.py +++ b/service/pixelated/resources/sync_info_resource.py @@ -32,7 +32,7 @@ class SyncInfoResource(Resource): return self.current / float(self.total) def set_sync_info(self, soledad_sync_status): - self.current, self.total = map(int, soledad_sync_status.content.split('/')) + self.current, self.total = [int(x) for x in soledad_sync_status.content.split('/')] def render_GET(self, request): _sync_info = { -- cgit v1.2.3