]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed encoding to use an endianness independent format.
authorMarc-André Lemburg <mal@egenix.com>
Wed, 27 Sep 2000 12:24:34 +0000 (12:24 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Wed, 27 Sep 2000 12:24:34 +0000 (12:24 +0000)
Lib/test/test_unicodedata.py

index b604c282333684ef9338e89941280d7bb32a748c..0dc575615e4d6ac20139863ad8687ffdf0c97ff9 100644 (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():