diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/encodings/utf_16.py | 6 | ||||
-rw-r--r-- | Lib/encodings/utf_32.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/encodings/utf_16.py b/Lib/encodings/utf_16.py index 61bb041..b145a5d 100644 --- a/Lib/encodings/utf_16.py +++ b/Lib/encodings/utf_16.py @@ -67,11 +67,11 @@ class StreamWriter(codecs.StreamWriter): def encode(self, input, errors='strict'): if self.encoder is None: - result = codecs.utf_16encoder(input, errors) + result = codecs.utf_16_encode(input, errors) if sys.byteorder == 'little': - self.encoder = codecs.utf_16_leencoder + self.encoder = codecs.utf_16_le_encode else: - self.encoder = codecs.utf_16_beencoder + self.encoder = codecs.utf_16_be_encode return result else: return self.encoder(input, errors) diff --git a/Lib/encodings/utf_32.py b/Lib/encodings/utf_32.py index ed73809..6c8016f 100644 --- a/Lib/encodings/utf_32.py +++ b/Lib/encodings/utf_32.py @@ -107,11 +107,11 @@ class StreamWriter(codecs.StreamWriter): def encode(self, input, errors='strict'): if self.encoder is None: - result = codecs.utf_32encoder(input, errors) + result = codecs.utf_32_encode(input, errors) if sys.byteorder == 'little': - self.encoder = codecs.utf_32_leencoder + self.encoder = codecs.utf_32_le_encode else: - self.encoder = codecs.utf_32_beencoder + self.encoder = codecs.utf_32_be_encode return result else: return self.encoder(input, errors) |