diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-22 13:44:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-22 13:44:25 (GMT) |
commit | 54b40ee92932ff5019528fe4a21274e7f2236b60 (patch) | |
tree | 6ae146c53bf1798ac0f5421316186fc14fc6eb1f /Lib | |
parent | 7df55dad3bd130992f5d978e8baf1119a7f2090b (diff) | |
download | cpython-54b40ee92932ff5019528fe4a21274e7f2236b60.zip cpython-54b40ee92932ff5019528fe4a21274e7f2236b60.tar.gz cpython-54b40ee92932ff5019528fe4a21274e7f2236b60.tar.bz2 |
Fix my last commit (r81471) about codecs
Rememder: don't touch the code just before a commit
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) |