From b31b3087286e55b4fa94cd389d02df3c0923fbea Mon Sep 17 00:00:00 2001 From: onovy Date: Tue, 28 Apr 2015 09:40:02 +0200 Subject: [PATCH] Cleanup. --- swauth/authtypes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/swauth/authtypes.py b/swauth/authtypes.py index 256ec3b..5d83f76 100644 --- a/swauth/authtypes.py +++ b/swauth/authtypes.py @@ -111,8 +111,8 @@ class Sha1(object): :returns: True if the supplied key is valid, False otherwise """ - [type, rest] = creds.split(':') - [salt, enc] = rest.split('$') + type, rest = creds.split(':') + salt, enc = rest.split('$') return self.encode_w_salt(salt, key) == creds @@ -159,7 +159,7 @@ class Sha512(object): :returns: True if the supplied key is valid, False otherwise """ - [type, rest] = creds.split(':') - [salt, enc] = rest.split('$') + type, rest = creds.split(':') + salt, enc = rest.split('$') return self.encode_w_salt(salt, key) == creds