diff options
author | Marius Halden <marius.h@lden.org> | 2014-03-17 19:13:28 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2014-03-17 19:13:28 +0100 |
commit | 97fcbda00f1a84a696d8458c377cc4447bf1d7fe (patch) | |
tree | bc9a6ad791980387f751f294cd2f80ef092cc5d1 | |
parent | d398793a759acc1d8bf2484f3533d0e9744bd429 (diff) | |
download | DDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.gz DDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.bz2 DDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.xz |
Removed unused variable from hash.py
-rw-r--r-- | ddns/hash.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ddns/hash.py b/ddns/hash.py index 7bb3b3b..7f74e25 100644 --- a/ddns/hash.py +++ b/ddns/hash.py @@ -1,15 +1,13 @@ import hashlib -algs = [None, 'sha1', 'sha256', 'sha512'] - def hash(algo, passwd): - if algo == None: # None + if algo == None: return passwd - if algo == 'sha1': # sha1 + if algo == 'sha1': return sha1(passwd) - if algo == 'sha256': # sha256 + if algo == 'sha256': return sha256(passwd) - if algo == 'sha512': # sha512 + if algo == 'sha512': return sha512(passwd) return passwd |