[Python-checkins] r45396 - python/trunk/Lib/encodings/idna.py (original) (raw)
walter.doerwald python-checkins at python.org
Fri Apr 14 19:00:37 CEST 2006
- Previous message: [Python-checkins] r45395 - python/trunk/Doc/api/memory.tex python/trunk/Doc/api/newtypes.tex
- Next message: [Python-checkins] r45397 - in sandbox/branches/setuptools-0.6: ez_setup.py release.sh setup.py setuptools/__init__.py version version.dat
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: walter.doerwald Date: Fri Apr 14 19:00:36 2006 New Revision: 45396
Modified: python/trunk/Lib/encodings/idna.py Log: Make error message less misleading for u"a..b".encode("idna").
Modified: python/trunk/Lib/encodings/idna.py
--- python/trunk/Lib/encodings/idna.py (original) +++ python/trunk/Lib/encodings/idna.py Fri Apr 14 19:00:36 2006 @@ -70,7 +70,7 @@ # Skip to step 8. if 0 < len(label) < 64: return label
raise UnicodeError("label too long")
raise UnicodeError("label empty or too long")
label = nameprep(label) Step 2: nameprep
@@ -85,7 +85,7 @@ # Skip to step 8. if 0 < len(label) < 64: return label
raise UnicodeError("label too long")
raise UnicodeError("label empty or too long")
if label.startswith(uace_prefix): Step 5: Check ACE prefix
@@ -100,7 +100,7 @@ # Step 8: Check size if 0 < len(label) < 64: return label
- raise UnicodeError("label too long")
- raise UnicodeError("label empty or too long")
def ToUnicode(label): # Step 1: Check for ASCII
- Previous message: [Python-checkins] r45395 - python/trunk/Doc/api/memory.tex python/trunk/Doc/api/newtypes.tex
- Next message: [Python-checkins] r45397 - in sandbox/branches/setuptools-0.6: ez_setup.py release.sh setup.py setuptools/__init__.py version version.dat
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]