summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/punycode.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2006-06-13 12:04:43 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2006-06-13 12:04:43 (GMT)
commitc6f5b3ad6c9e93235f9aa53d1ed8086030fbcd6c (patch)
tree524e907b462e61236af6d29d4418f085f2b96d59 /Lib/encodings/punycode.py
parent6b6e2bb8b1a7ca405440cd371ceabf3d35cb592b (diff)
downloadcpython-c6f5b3ad6c9e93235f9aa53d1ed8086030fbcd6c.zip
cpython-c6f5b3ad6c9e93235f9aa53d1ed8086030fbcd6c.tar.gz
cpython-c6f5b3ad6c9e93235f9aa53d1ed8086030fbcd6c.tar.bz2
errors is an attribute in the incremental decoder
not an argument.
Diffstat (limited to 'Lib/encodings/punycode.py')
-rw-r--r--Lib/encodings/punycode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/encodings/punycode.py b/Lib/encodings/punycode.py
index 2cde8b9..d97200f 100644
--- a/Lib/encodings/punycode.py
+++ b/Lib/encodings/punycode.py
@@ -214,9 +214,9 @@ class IncrementalEncoder(codecs.IncrementalEncoder):
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
- if errors not in ('strict', 'replace', 'ignore'):
- raise UnicodeError, "Unsupported error handling "+errors
- return punycode_decode(input, errors)
+ if self.errors not in ('strict', 'replace', 'ignore'):
+ raise UnicodeError, "Unsupported error handling "+self.errors
+ return punycode_decode(input, self.errors)
class StreamWriter(Codec,codecs.StreamWriter):
pass