diff options
author | Guido van Rossum <guido@python.org> | 2007-11-21 19:29:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-21 19:29:53 (GMT) |
commit | 254348e201647ad9d264de2cc0fde031e8214719 (patch) | |
tree | f5e6c42989ce114d4a9385404a6b23b2b1ff12af /Lib/encodings/idna.py | |
parent | 905a904723abadc627be60bf944e2ca76329b06e (diff) | |
download | cpython-254348e201647ad9d264de2cc0fde031e8214719.zip cpython-254348e201647ad9d264de2cc0fde031e8214719.tar.gz cpython-254348e201647ad9d264de2cc0fde031e8214719.tar.bz2 |
Rename buffer -> bytearray.
Diffstat (limited to 'Lib/encodings/idna.py')
-rw-r--r-- | Lib/encodings/idna.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/encodings/idna.py b/Lib/encodings/idna.py index 30f507a..c2ba1da 100644 --- a/Lib/encodings/idna.py +++ b/Lib/encodings/idna.py @@ -153,7 +153,7 @@ class Codec(codecs.Codec): if not input: return b'', 0 - result = buffer() + result = bytearray() labels = dots.split(input) if labels and not labels[-1]: trailing_dot = b'.' @@ -216,7 +216,7 @@ class IncrementalEncoder(codecs.BufferedIncrementalEncoder): if labels: trailing_dot = b'.' - result = buffer() + result = bytearray() size = 0 for label in labels: if size: |