Fixed encoding to use an endianness independent format.

This commit is contained in:
Marc-André Lemburg 2000-09-27 12:24:34 +00:00
parent 6a7768ae4f
commit 67ceca7add
1 changed files with 3 additions and 1 deletions

View File

@ -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():