I don't think that printing on stdout is the right thing to do in this api layer. It should be handled by the calling layer shounldn't it ? Was that debug code ?
This commit is contained in:
parent
7e4d2ee557
commit
09c4b14c97
1 changed files with 3 additions and 3 deletions
|
@ -402,9 +402,9 @@ class Mega(object):
|
||||||
attribs = decrypt_attr(attribs, k)
|
attribs = decrypt_attr(attribs, k)
|
||||||
file_name = attribs['n']
|
file_name = attribs['n']
|
||||||
|
|
||||||
print("downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"),
|
# print("downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"),
|
||||||
file_size,
|
# file_size,
|
||||||
file_url))
|
# file_url))
|
||||||
|
|
||||||
input_file = requests.get(file_url, stream=True).raw
|
input_file = requests.get(file_url, stream=True).raw
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue