Message215189
When encoding a string with the IDNA codec I expected that it will always raise an exception with empty labels. When I do this
>>> 'example.c…'.encode('idna').decode('ascii')
it returns
'example.c...'
instead of raising UnicodeError. The original string ends with U+2026 HORIZONTAL ELLIPSIS if you can't see it clearly. These strings are coming from web pages in a web crawler.
I tested this on Python 3.4, 3.3.2, 2.7.5, 2.6.9. |
|
Date |
User |
Action |
Args |
2014-03-30 17:57:53 | chfoo | set | recipients:
+ chfoo |
2014-03-30 17:57:53 | chfoo | set | messageid: <1396202273.23.0.997989439656.issue21103@psf.upfronthosting.co.za> |
2014-03-30 17:57:53 | chfoo | link | issue21103 messages |
2014-03-30 17:57:52 | chfoo | create | |
|