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): """