From 164512b6a74c94a731fcee7435dce1ccfa2f71e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 17 Jun 2015 18:29:50 +0200 Subject: Spare code cosmetics --- module/plugins/hoster/MegaCoNz.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster/MegaCoNz.py') diff --git a/module/plugins/hoster/MegaCoNz.py b/module/plugins/hoster/MegaCoNz.py index 08eab2fb1..20b879aba 100644 --- a/module/plugins/hoster/MegaCoNz.py +++ b/module/plugins/hoster/MegaCoNz.py @@ -68,7 +68,9 @@ class MegaCoNz(Hoster): def getCipherKey(self, key): - """ Construct the cipher key from the given data """ + """ + Construct the cipher key from the given data + """ a = array.array("I", self.b64_decode(key)) k = array.array("I", (a[0] ^ a[4], a[1] ^ a[5], a[2] ^ a[6], a[3] ^ a[7])) @@ -79,8 +81,9 @@ class MegaCoNz(Hoster): def api_response(self, **kwargs): - """ Dispatch a call to the api, see https://mega.co.nz/#developers """ - + """ + Dispatch a call to the api, see https://mega.co.nz/#developers + """ # generate a session id, no idea where to obtain elsewhere uid = random.randint(10 << 9, 10 ** 10) @@ -103,8 +106,9 @@ class MegaCoNz(Hoster): def decryptFile(self, key): - """ Decrypts the file at lastDownload` """ - + """ + Decrypts the file at lastDownload` + """ # upper 64 bit of counter start n = self.b64_decode(key)[16:24] -- cgit v1.2.3