Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kjd/idna
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.9
Choose a base ref
...
head repository: kjd/idna
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.10
Choose a head ref
  • 6 commits
  • 9 files changed
  • 2 contributors

Commits on Feb 17, 2020

  1. Remove deprecated license_file from setup.cfg (#79)

    Starting with wheel 0.32.0 (2018-09-29), the "license_file" option is
    deprecated.
    
    https://wheel.readthedocs.io/en/stable/news.html
    
    The wheel will continue to include LICENSE, it is now included
    automatically:
    
    https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
    jdufresne authored Feb 17, 2020
    Copy the full SHA
    69ac335 View commit details
  2. Remove use of deprecated 'setup.py test' command (#77)

    Since setuptools v41.5.0 (27 Oct 2019), the 'test' command and its
    arguments are formally deprecated and should not be used. Instead, use
    the unittest module to run tests.
    jdufresne authored Feb 17, 2020
    Copy the full SHA
    133fc01 View commit details

Commits on Mar 14, 2020

  1. 2
    Copy the full SHA
    efc1607 View commit details
  2. Copy the full SHA
    cdd1a2c View commit details

Commits on Jun 27, 2020

  1. Merge pull request #85 from kjd/unicode-13

    Update to Unicode 13.0.0-based data
    kjd authored Jun 27, 2020
    Copy the full SHA
    d447471 View commit details
  2. Release v2.10

    kjd committed Jun 27, 2020
    Copy the full SHA
    e5c11db View commit details
Showing with 361 additions and 256 deletions.
  1. +1 −1 .travis.yml
  2. +7 −0 HISTORY.rst
  3. +2 −0 idna/core.py
  4. +83 −24 idna/idnadata.py
  5. +1 −1 idna/package_data.py
  6. +266 −226 idna/uts46data.py
  7. +0 −3 setup.cfg
  8. +0 −1 setup.py
  9. +1 −0 tests/test_idna.py
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -11,4 +11,4 @@ python:
install:
- pip install .
script:
- python setup.py test
- python -m unittest discover
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -3,6 +3,13 @@
History
-------

2.10 (2020-06-27)
+++++++++++++++++

- Update to Unicode 13.0.0.
- Throws a more specific exception if "xn--" is provided as a label.
- This is expected to be the last version that supports Python 2.

2.9 (2020-02-16)
++++++++++++++++

2 changes: 2 additions & 0 deletions idna/core.py
Original file line number Diff line number Diff line change
@@ -300,6 +300,8 @@ def ulabel(label):
label = label.lower()
if label.startswith(_alabel_prefix):
label = label[len(_alabel_prefix):]
if not label:
raise IDNAError('Malformed A-label, no Punycode eligible content found')
if label.decode('ascii')[-1] == '-':
raise IDNAError('A-label must not end with a hyphen')
else:
107 changes: 83 additions & 24 deletions idna/idnadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is automatically generated by tools/idna-data

__version__ = "12.1.0"
__version__ = "13.0.0"
scripts = {
'Greek': (
0x37000000374,
@@ -48,16 +48,18 @@
0x300700003008,
0x30210000302a,
0x30380000303c,
0x340000004db6,
0x4e0000009ff0,
0x340000004dc0,
0x4e0000009ffd,
0xf9000000fa6e,
0xfa700000fada,
0x200000002a6d7,
0x16ff000016ff2,
0x200000002a6de,
0x2a7000002b735,
0x2b7400002b81e,
0x2b8200002cea2,
0x2ceb00002ebe1,
0x2f8000002fa1e,
0x300000003134b,
),
'Hebrew': (
0x591000005c8,
@@ -389,9 +391,9 @@
0x853: 68,
0x854: 82,
0x855: 68,
0x856: 85,
0x857: 85,
0x858: 85,
0x856: 82,
0x857: 82,
0x858: 82,
0x860: 68,
0x861: 85,
0x862: 68,
@@ -432,6 +434,16 @@
0x8bb: 68,
0x8bc: 68,
0x8bd: 68,
0x8be: 68,
0x8bf: 68,
0x8c0: 68,
0x8c1: 68,
0x8c2: 68,
0x8c3: 68,
0x8c4: 68,
0x8c5: 68,
0x8c6: 68,
0x8c7: 68,
0x8e2: 85,
0x1806: 85,
0x1807: 68,
@@ -756,6 +768,34 @@
0x10f52: 68,
0x10f53: 68,
0x10f54: 82,
0x10fb0: 68,
0x10fb1: 85,
0x10fb2: 68,
0x10fb3: 68,
0x10fb4: 82,
0x10fb5: 82,
0x10fb6: 82,
0x10fb7: 85,
0x10fb8: 68,
0x10fb9: 82,
0x10fba: 82,
0x10fbb: 68,
0x10fbc: 68,
0x10fbd: 82,
0x10fbe: 68,
0x10fbf: 68,
0x10fc0: 85,
0x10fc1: 68,
0x10fc2: 82,
0x10fc3: 82,
0x10fc4: 68,
0x10fc5: 85,
0x10fc6: 85,
0x10fc7: 85,
0x10fc8: 85,
0x10fc9: 82,
0x10fca: 68,
0x10fcb: 76,
0x110bd: 85,
0x110cd: 85,
0x1e900: 68,
@@ -1129,7 +1169,7 @@
0x8400000085c,
0x8600000086b,
0x8a0000008b5,
0x8b6000008be,
0x8b6000008c8,
0x8d3000008e2,
0x8e300000958,
0x96000000964,
@@ -1188,7 +1228,7 @@
0xb3c00000b45,
0xb4700000b49,
0xb4b00000b4e,
0xb5600000b58,
0xb5500000b58,
0xb5f00000b64,
0xb6600000b70,
0xb7100000b72,
@@ -1233,8 +1273,7 @@
0xce000000ce4,
0xce600000cf0,
0xcf100000cf3,
0xd0000000d04,
0xd0500000d0d,
0xd0000000d0d,
0xd0e00000d11,
0xd1200000d45,
0xd4600000d49,
@@ -1243,7 +1282,7 @@
0xd5f00000d64,
0xd6600000d70,
0xd7a00000d80,
0xd8200000d84,
0xd8100000d84,
0xd8500000d97,
0xd9a00000db2,
0xdb300000dbc,
@@ -1358,6 +1397,7 @@
0x1a9000001a9a,
0x1aa700001aa8,
0x1ab000001abe,
0x1abf00001ac1,
0x1b0000001b4c,
0x1b5000001b5a,
0x1b6b00001b74,
@@ -1609,10 +1649,10 @@
0x30a1000030fb,
0x30fc000030ff,
0x310500003130,
0x31a0000031bb,
0x31a0000031c0,
0x31f000003200,
0x340000004db6,
0x4e0000009ff0,
0x340000004dc0,
0x4e0000009ffd,
0xa0000000a48d,
0xa4d00000a4fe,
0xa5000000a60d,
@@ -1727,8 +1767,11 @@
0xa7bd0000a7be,
0xa7bf0000a7c0,
0xa7c30000a7c4,
0xa7f70000a7f8,
0xa7c80000a7c9,
0xa7ca0000a7cb,
0xa7f60000a7f8,
0xa7fa0000a828,
0xa82c0000a82d,
0xa8400000a874,
0xa8800000a8c6,
0xa8d00000a8da,
@@ -1753,7 +1796,7 @@
0xab200000ab27,
0xab280000ab2f,
0xab300000ab5b,
0xab600000ab68,
0xab600000ab6a,
0xabc00000abeb,
0xabec0000abee,
0xabf00000abfa,
@@ -1827,9 +1870,13 @@
0x10cc000010cf3,
0x10d0000010d28,
0x10d3000010d3a,
0x10e8000010eaa,
0x10eab00010ead,
0x10eb000010eb2,
0x10f0000010f1d,
0x10f2700010f28,
0x10f3000010f51,
0x10fb000010fc5,
0x10fe000010ff7,
0x1100000011047,
0x1106600011070,
@@ -1838,12 +1885,12 @@
0x110f0000110fa,
0x1110000011135,
0x1113600011140,
0x1114400011147,
0x1114400011148,
0x1115000011174,
0x1117600011177,
0x11180000111c5,
0x111c9000111cd,
0x111d0000111db,
0x111ce000111db,
0x111dc000111dd,
0x1120000011212,
0x1121300011238,
@@ -1872,7 +1919,7 @@
0x1137000011375,
0x114000001144b,
0x114500001145a,
0x1145e00011460,
0x1145e00011462,
0x11480000114c6,
0x114c7000114c8,
0x114d0000114da,
@@ -1889,7 +1936,14 @@
0x117300001173a,
0x118000001183b,
0x118c0000118ea,
0x118ff00011900,
0x118ff00011907,
0x119090001190a,
0x1190c00011914,
0x1191500011917,
0x1191800011936,
0x1193700011939,
0x1193b00011944,
0x119500001195a,
0x119a0000119a8,
0x119aa000119d8,
0x119da000119e2,
@@ -1920,6 +1974,7 @@
0x11d9300011d99,
0x11da000011daa,
0x11ee000011ef7,
0x11fb000011fb1,
0x120000001239a,
0x1248000012544,
0x130000001342f,
@@ -1939,9 +1994,11 @@
0x16f4f00016f88,
0x16f8f00016fa0,
0x16fe000016fe2,
0x16fe300016fe4,
0x16fe300016fe5,
0x16ff000016ff2,
0x17000000187f8,
0x1880000018af3,
0x1880000018cd6,
0x18d0000018d09,
0x1b0000001b11f,
0x1b1500001b153,
0x1b1640001b168,
@@ -1971,11 +2028,13 @@
0x1e8d00001e8d7,
0x1e9220001e94c,
0x1e9500001e95a,
0x200000002a6d7,
0x1fbf00001fbfa,
0x200000002a6de,
0x2a7000002b735,
0x2b7400002b81e,
0x2b8200002cea2,
0x2ceb00002ebe1,
0x300000003134b,
),
'CONTEXTJ': (
0x200c0000200e,
2 changes: 1 addition & 1 deletion idna/package_data.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '2.9'
__version__ = '2.10'

Loading