diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-09 23:38:20 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-09 23:38:20 (GMT) |
commit | 480f1bb67ba8d2857d87921391df278c5569774c (patch) | |
tree | 16370e5215e51cb589a2f07b93a2105c851ce956 /Lib | |
parent | e2b4677253a809228b16a2c48b6169e1ae576f55 (diff) | |
download | cpython-480f1bb67ba8d2857d87921391df278c5569774c.zip cpython-480f1bb67ba8d2857d87921391df278c5569774c.tar.gz cpython-480f1bb67ba8d2857d87921391df278c5569774c.tar.bz2 |
Update Unicode database to Unicode 4.1.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/encodings/idna.py | 3 | ||||
-rw-r--r-- | Lib/stringprep.py | 2 | ||||
-rw-r--r-- | Lib/test/test_unicodedata.py | 4 |
3 files changed, 5 insertions, 4 deletions
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 @@ There are two kinds of tables: sets, for which a member test is provided, 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 @@ encoding = 'utf-8' 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 UnicodeDatabaseTest(unittest.TestCase): class UnicodeFunctionsTest(UnicodeDatabaseTest): # update this, if the database changes - expectedchecksum = 'cfe20a967a450ebc82ca68c3e4eed344164e11af' + expectedchecksum = 'b45b79f3203ee1a896d9b5655484adaff5d4964b' def test_function_checksum(self): data = [] |