From 3b16ed65033994a6c2bcaac24f365c39cb4d008f Mon Sep 17 00:00:00 2001 From: Jiabin Yang Date: Fri, 24 Aug 2018 23:39:21 +0800 Subject: [PATCH] Update common.py --- python/paddle/dataset/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/dataset/common.py b/python/paddle/dataset/common.py index 424c121e82e..89b9eb7f48a 100644 --- a/python/paddle/dataset/common.py +++ b/python/paddle/dataset/common.py @@ -95,7 +95,7 @@ def download(url, module_name, md5sum, save_name=None): total_length = int(total_length) for data in r.iter_content(chunk_size=4096): if six.PY2: - data = six.b(data) + data = six.b(data) dl += len(data) f.write(data) done = int(50 * dl / total_length) -- GitLab