Skip to content

Commit 4705ea3

Browse files
miss-islingtonbenjaminp
authored andcommitted
update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470)
Also, standardize indentation of generated tables. (cherry picked from commit 7c69c1c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent d2a2af0 commit 4705ea3

File tree

9 files changed

+28286
-26103
lines changed

9 files changed

+28286
-26103
lines changed

Doc/library/unicodedata.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
This module provides access to the Unicode Character Database (UCD) which
1919
defines character properties for all Unicode characters. The data contained in
20-
this database is compiled from the `UCD version 10.0.0
21-
<http://www.unicode.org/Public/10.0.0/ucd>`_.
20+
this database is compiled from the `UCD version 11.0.0
21+
<http://www.unicode.org/Public/11.0.0/ucd>`_.
2222

2323
The module uses the same names and symbols as defined by Unicode
2424
Standard Annex #44, `"Unicode Character Database"
@@ -168,6 +168,6 @@ Examples:
168168

169169
.. rubric:: Footnotes
170170

171-
.. [#] http://www.unicode.org/Public/10.0.0/ucd/NameAliases.txt
171+
.. [#] http://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt
172172
173-
.. [#] http://www.unicode.org/Public/10.0.0/ucd/NamedSequences.txt
173+
.. [#] http://www.unicode.org/Public/11.0.0/ucd/NamedSequences.txt

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ The Unicode category codes mentioned above stand for:
313313
* *Nd* - decimal numbers
314314
* *Pc* - connector punctuations
315315
* *Other_ID_Start* - explicit list of characters in `PropList.txt
316-
<http://www.unicode.org/Public/10.0.0/ucd/PropList.txt>`_ to support backwards
316+
<http://www.unicode.org/Public/11.0.0/ucd/PropList.txt>`_ to support backwards
317317
compatibility
318318
* *Other_ID_Continue* - likewise
319319

@@ -876,4 +876,4 @@ occurrence outside string literals and comments is an unconditional error:
876876
877877
.. rubric:: Footnotes
878878

879-
.. [#] http://www.unicode.org/Public/10.0.0/ucd/NameAliases.txt
879+
.. [#] http://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt

Lib/test/test_unicodedata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class UnicodeMethodsTest(unittest.TestCase):
2121

2222
# update this, if the database changes
23-
expectedchecksum = '727091e0fd5807eb41c72912ae95cdd74c795e27'
23+
expectedchecksum = '97a41f208c53d5e08c77c1175187e95386b82b6f'
2424

2525
def test_method_checksum(self):
2626
h = hashlib.sha1()
@@ -80,7 +80,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
8080

8181
# Update this if the database changes. Make sure to do a full rebuild
8282
# (e.g. 'make distclean && make') to get the correct checksum.
83-
expectedchecksum = 'db6f92bb5010f8e85000634b08e77233355ab37a'
83+
expectedchecksum = '4f73278b19c2ec3099724c132f0b90a1d25c19e4'
8484
def test_function_checksum(self):
8585
data = []
8686
h = hashlib.sha1()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update ``unicodedata``'s database to Unicode version 11.0.0.

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ is_unified_ideograph(Py_UCS4 code)
921921
{
922922
return
923923
(0x3400 <= code && code <= 0x4DB5) || /* CJK Ideograph Extension A */
924-
(0x4E00 <= code && code <= 0x9FEA) || /* CJK Ideograph */
924+
(0x4E00 <= code && code <= 0x9FEF) || /* CJK Ideograph */
925925
(0x20000 <= code && code <= 0x2A6D6) || /* CJK Ideograph Extension B */
926926
(0x2A700 <= code && code <= 0x2B734) || /* CJK Ideograph Extension C */
927927
(0x2B740 <= code && code <= 0x2B81D) || /* CJK Ideograph Extension D */

0 commit comments

Comments
 (0)