summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/idna.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-04-24 16:02:54 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-04-24 16:02:54 (GMT)
commit0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a (patch)
tree6d84cc9f2da9f24dd76871e75a80e618fd519a27 /Lib/encodings/idna.py
parent0822ff7ccab0465cf4377176089dfdbabbd0a35b (diff)
downloadcpython-0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a.zip
cpython-0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a.tar.gz
cpython-0eadaac7dc3ae49974c105ff9e8c1e98a04d7d5a.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/encodings/idna.py')
-rw-r--r--Lib/encodings/idna.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/encodings/idna.py b/Lib/encodings/idna.py
index 7e4d04e..62aa450 100644
--- a/Lib/encodings/idna.py
+++ b/Lib/encodings/idna.py
@@ -19,10 +19,10 @@ def nameprep(label):
continue
newlabel.append(stringprep.map_table_b2(c))
label = u"".join(newlabel)
-
+
# Normalize
label = unicodedata.normalize("NFKC", label)
-
+
# Prohibit
for c in label:
if stringprep.in_table_c12(c) or \
@@ -139,7 +139,7 @@ def ToUnicode(label):
# Step 8: return the result of step 5
return result
-
+
### Codec APIs
class Codec(codecs.Codec):
@@ -156,7 +156,7 @@ class Codec(codecs.Codec):
return ".".join(result), len(input)
def decode(self,input,errors='strict'):
-
+
if errors != 'strict':
raise UnicodeError, "Unsupported error handling "+errors