From 0d2e91996e007e4b40d20d982b7c3158235ec242 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 28 Apr 2013 17:08:47 +0100 Subject: [PATCH] PEP8 style fixes --- mega/mega.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mega/mega.py b/mega/mega.py index 8f070cc..670f138 100644 --- a/mega/mega.py +++ b/mega/mega.py @@ -27,7 +27,6 @@ class Mega(object): options = {} self.options = options - def login(self, email, password): self.login_user(email, password) return self @@ -305,16 +304,16 @@ class Mega(object): raise ValueError("Only one unit prefix can be specified") unit_coef = 1 if kilo: - unit_coef = 1024 + unit_coef = 1024 if mega: - unit_coef = 1048576 + unit_coef = 1048576 if giga: - unit_coef = 1073741824 + unit_coef = 1073741824 json_resp = self.api_request({'a': 'uq', 'xfer': 1, 'strg': 1}) return { 'used': json_resp['cstrg'] / unit_coef, 'total': json_resp['mstrg'] / unit_coef, - } + } def get_balance(self): """