Update Unicode database to Unicode 4.1.
diff --git a/Lib/encodings/idna.py b/Lib/encodings/idna.py
index f8a31d8..fde710b 100644
--- a/Lib/encodings/idna.py
+++ b/Lib/encodings/idna.py
@@ -1,6 +1,7 @@
# This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep)
-import stringprep, unicodedata, re, codecs
+import stringprep, re, codecs
+from unicodedata import db_3_2_0 as unicodedata
# IDNA section 3.1
dots = re.compile(u"[\u002E\u3002\uFF0E\uFF61]")
diff --git a/Lib/stringprep.py b/Lib/stringprep.py
index f997a67..225aedb 100644
--- a/Lib/stringprep.py
+++ b/Lib/stringprep.py
@@ -5,7 +5,7 @@
and mappings, for which a mapping function is provided.
"""
-import unicodedata
+from unicodedata import db_3_2_0 as unicodedata
assert unicodedata.unidata_version == '3.2.0'
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index f6dbe0e..f84caad 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -16,7 +16,7 @@
class UnicodeMethodsTest(unittest.TestCase):
# update this, if the database changes
- expectedchecksum = 'a37276dc2c158bef6dfd908ad34525c97180fad9'
+ expectedchecksum = 'a6555cd209d960dcfa17bfdce0c96d91cfa9a9ba'
def test_method_checksum(self):
h = sha.sha()
@@ -75,7 +75,7 @@
class UnicodeFunctionsTest(UnicodeDatabaseTest):
# update this, if the database changes
- expectedchecksum = 'cfe20a967a450ebc82ca68c3e4eed344164e11af'
+ expectedchecksum = 'b45b79f3203ee1a896d9b5655484adaff5d4964b'
def test_function_checksum(self):
data = []