diff --git a/python/paddle/dataset/common.py b/python/paddle/dataset/common.py index 89b9eb7f48a74d3ec18da1bcd23f98e6b67e440d..94ca21de8e4b8cfca82f220866df705999eb42c0 100644 --- a/python/paddle/dataset/common.py +++ b/python/paddle/dataset/common.py @@ -94,7 +94,7 @@ def download(url, module_name, md5sum, save_name=None): dl = 0 total_length = int(total_length) for data in r.iter_content(chunk_size=4096): - if six.PY2: + if six.PY2: data = six.b(data) dl += len(data) f.write(data)