summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-03-18 16:08:44 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-03-18 16:10:01 -0300
commite80cd4748eb8d9b1b292da847172a9613f18face (patch)
tree74524757be502e3c544b8a0ee8d0da25702b9674
parente505894007c9adabc673ac6b1a09f6216eda475c (diff)
Changed map to list comprehension
-rw-r--r--service/pixelated/resources/sync_info_resource.py2
1 files changed, 1 insertions, 1 deletions
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 = {