summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_stringprep.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-30 08:57:35 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-30 08:57:35 (GMT)
commitbffb0bc064c25032264037e3c0405d7ab0d3c149 (patch)
tree402405c1b4a25a822a4174376002b348299b54fd /Lib/test/test_stringprep.py
parentfa42bd7af429a909e3e964ffc8dcfa457e007ac8 (diff)
downloadcpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.zip
cpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.tar.gz
cpython-bffb0bc064c25032264037e3c0405d7ab0d3c149.tar.bz2
In stdlib, use hashlib instead of deprecated md5 and sha modules.
Diffstat (limited to 'Lib/test/test_stringprep.py')
-rw-r--r--Lib/test/test_stringprep.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_stringprep.py b/Lib/test/test_stringprep.py
index 4459689..2baf4a5 100644
--- a/Lib/test/test_stringprep.py
+++ b/Lib/test/test_stringprep.py
@@ -2,7 +2,6 @@
# Since we don't have them, this test checks only a few codepoints.
from test.test_support import verify, vereq
-import sha
import stringprep
from stringprep import *
@@ -73,6 +72,7 @@ verify(not in_table_d2(u"\u0040"))
# unicode database. Instead, stringprep.py asserts the version of
# the database.
+# import hashlib
# predicates = [k for k in dir(stringprep) if k.startswith("in_table")]
# predicates.sort()
# for p in predicates:
@@ -83,6 +83,6 @@ verify(not in_table_d2(u"\u0040"))
# if f(unichr(i)):
# data[i] = "1"
# data = "".join(data)
-# h = sha.sha()
+# h = hashlib.sha1()
# h.update(data)
-# print p,h.hexdigest()
+# print p, h.hexdigest()