Commit 67ceca7a authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fixed encoding to use an endianness independent format.

parent 6a7768ae
......@@ -7,6 +7,8 @@
"""#"
import sha
encoding = 'utf-8'
def test_methods():
h = sha.sha()
......@@ -48,7 +50,7 @@ def test_methods():
(char + u'ABC').title(),
]
h.update(u''.join(data).encode('unicode-internal'))
h.update(u''.join(data).encode(encoding))
return h.hexdigest()
def test_unicodedata():
......
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