From ee69ce76ec382c35b19823d5fc838264bd054ca8 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 13 Jan 2015 12:36:42 -0200 Subject: [style] fix pep8 violations --- src/leap/bitmask/crypto/srpauth.py | 6 +++--- src/leap/bitmask/crypto/srpregister.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/leap/bitmask/crypto/srpauth.py b/src/leap/bitmask/crypto/srpauth.py index 0a6513c8..fe177e5a 100644 --- a/src/leap/bitmask/crypto/srpauth.py +++ b/src/leap/bitmask/crypto/srpauth.py @@ -535,8 +535,8 @@ class SRPAuthImpl(object): d = threads.deferToThread(self._authentication_preprocessing, username=username, password=password) - d.addCallback(partial(self._start_authentication, username=username)) + d.addCallback(partial(self._process_challenge, username=username)) d.addCallback(self._extract_data) d.addCallback(self._verify_session) @@ -682,7 +682,8 @@ class SRPAuth(object): :param new_password: the new password for the user :type new_password: str """ - d = SRPAuthImpl.change_password(self, current_password, new_password) + d = SRPAuthImpl.change_password(self, current_password, + new_password) d.addCallback(self._change_password_ok) d.addErrback(self._change_password_error) return d @@ -718,7 +719,6 @@ class SRPAuth(object): self._signaler.signal(self._signaler.srp_logout_error) raise - __instance = None def __init__(self, provider_config, signaler=None): diff --git a/src/leap/bitmask/crypto/srpregister.py b/src/leap/bitmask/crypto/srpregister.py index 2964b4b7..e3007b6c 100644 --- a/src/leap/bitmask/crypto/srpregister.py +++ b/src/leap/bitmask/crypto/srpregister.py @@ -152,7 +152,6 @@ class SRPRegister(QtCore.QObject): STATUS_OK = (200, 201) STATUS_TAKEN = 422 - def __init__(self, signaler=None, provider_config=None, register_path="users"): """ -- cgit v1.2.3