it's more pep8 :)

master
richard 2013-04-19 19:38:45 +01:00
parent 6ea2bfa5c7
commit d1fd89db4c
2 changed files with 6 additions and 6 deletions

View File

@ -403,7 +403,7 @@ class Mega(object):
attribs = base64_url_decode(file_data['at']) attribs = base64_url_decode(file_data['at'])
attribs = decrypt_attr(attribs, k) attribs = decrypt_attr(attribs, k)
file_name = attribs['n'] 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"), # print("downloading {0} (size: {1}), url = {2}".format(attribs['n'].encode("utf8"),
# file_size, # file_size,

View File

@ -1,5 +1,6 @@
from mega import Mega from mega import Mega
def test(): def test():
#user details #user details
email = 'your@email.com' email = 'your@email.com'
@ -30,7 +31,6 @@ def test():
#search for a file in account #search for a file in account
file = m.find('tests.py') file = m.find('tests.py')
if file: if file:
#get public link #get public link
link = m.get_link(file) link = m.get_link(file)