Commit 9682f4ef authored by ryanss's avatar ryanss
Browse files

Fix Python 3 encoding issue

Must encode unicode string before passing to hashlib.md5 in Python 3.
parent 708a260d
......@@ -59,7 +59,6 @@ Example Usage
print "Found %d emails" % len(emails)
Install
-------
......
......@@ -188,7 +188,7 @@ class Session:
data = [
{
'user_name': username,
'password': hashlib.md5(password).hexdigest()
'password': hashlib.md5(password.encode('utf8')).hexdigest()
},
app,
[{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment