Fix another python3-specific flake.
This commit is contained in:
parent
20f2f2a1f5
commit
cc07f0b22f
@ -15,7 +15,7 @@ except ImportError:
|
|||||||
|
|
||||||
def pbkdf2(val, salt, iterations, dklen, func):
|
def pbkdf2(val, salt, iterations, dklen, func):
|
||||||
return _pbkdf2(val, salt, iterations, dklen, ("hmac-" + func).encode("utf-8"))
|
return _pbkdf2(val, salt, iterations, dklen, ("hmac-" + func).encode("utf-8"))
|
||||||
except ImportError as ex:
|
except ImportError:
|
||||||
raise ImportError("No PBKDF2 implementation found. Either upgrade "
|
raise ImportError("No PBKDF2 implementation found. Either upgrade "
|
||||||
"to `werkzeug` 0.9 or install `passlib`.")
|
"to `werkzeug` 0.9 or install `passlib`.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user