Removed un-needed variables process_file()

This commit is contained in:
richard@richard.do 2013-02-07 18:29:16 +00:00
parent 50e565e0bb
commit 7ed5bcee43
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ This is a work in progress, further functionality coming shortly.
m.delete('utYjgSTQ') m.delete('utYjgSTQ')
m.delete_url('https://mega.co.nz/#!utYjgSTQ!OM4U3V5v_W4N5edSo0wolg1D5H0fwSrLD3oLnLuS9pc') m.delete_url('https://mega.co.nz/#!utYjgSTQ!OM4U3V5v_W4N5edSo0wolg1D5H0fwSrLD3oLnLuS9pc')
files = m.find('myfile.doc') files = m.find('myfile.doc')
if files: if files:
m.delete(files[1]['k']) m.delete(files[1]['k'])

View file

@ -321,8 +321,8 @@ class Mega(object):
key = decrypt_key(base64_to_a32(key), self.master_key) key = decrypt_key(base64_to_a32(key), self.master_key)
if file['t'] == 0: if file['t'] == 0:
k = file['k'] = (key[0] ^ key[4], key[1] ^ key[5], key[2] ^ key[6], key[3] ^ key[7]) k = file['k'] = (key[0] ^ key[4], key[1] ^ key[5], key[2] ^ key[6], key[3] ^ key[7])
iv = file['iv'] = key[4:6] + (0, 0) file['iv'] = key[4:6] + (0, 0)
meta_mac = file['meta_mac'] = key[6:8] file['meta_mac'] = key[6:8]
else: else:
k = file['k'] = key k = file['k'] = key
attributes = base64_url_decode(file['a']) attributes = base64_url_decode(file['a'])