it's more pep8 :)
This commit is contained in:
parent
6ea2bfa5c7
commit
d1fd89db4c
2 changed files with 6 additions and 6 deletions
|
@ -403,7 +403,7 @@ class Mega(object):
|
|||
attribs = base64_url_decode(file_data['at'])
|
||||
attribs = decrypt_attr(attribs, k)
|
||||
file_name = attribs['n']
|
||||
file_name_tmp = '.megapy-%s-%s' % (int(time.time()*1000), filename)
|
||||
file_name_tmp = '.megapy-%s-%s' % (int(time.time() * 1000), file_name)
|
||||
|
||||
# print("downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"),
|
||||
# file_size,
|
||||
|
|
2
tests.py
2
tests.py
|
@ -1,5 +1,6 @@
|
|||
from mega import Mega
|
||||
|
||||
|
||||
def test():
|
||||
#user details
|
||||
email = 'your@email.com'
|
||||
|
@ -30,7 +31,6 @@ def test():
|
|||
#search for a file in account
|
||||
file = m.find('tests.py')
|
||||
|
||||
|
||||
if file:
|
||||
#get public link
|
||||
link = m.get_link(file)
|
||||
|
|
Loading…
Reference in a new issue