diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2015-01-13 12:36:42 -0200 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-04-01 17:05:05 -0300 |
commit | ee69ce76ec382c35b19823d5fc838264bd054ca8 (patch) | |
tree | 572acca5bb560aa763c788de0a1ca4cea8eb0e37 /src/leap | |
parent | b095e605e6ee7875e221f03278507825c2a3ad63 (diff) |
[style] fix pep8 violations
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/crypto/srpauth.py | 6 | ||||
-rw-r--r-- | src/leap/bitmask/crypto/srpregister.py | 1 |
2 files changed, 3 insertions, 4 deletions
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"): """ |