diff --git a/oml/modules/download.py b/oml/modules/download.py index fd7b1d7..2f1273e 100644 --- a/oml/modules/download.py +++ b/oml/modules/download.py @@ -7,7 +7,7 @@ def download(url,decode = "utf-8"): response = urllib.request.urlopen(request) rt = response.read() if decode == False: return rt - return response.read().decode(decode) + return rt.decode(decode) global fileDl def fileDl(url,file,read = True,decode = "utf-8"):