diff options
Diffstat (limited to 'Lib/encodings/utf_16.py')
-rw-r--r-- | Lib/encodings/utf_16.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/utf_16.py b/Lib/encodings/utf_16.py index cf096b5732..5500c0623c 100644 --- a/Lib/encodings/utf_16.py +++ b/Lib/encodings/utf_16.py @@ -132,7 +132,7 @@ class StreamReader(codecs.StreamReader): elif byteorder == 1: self.decode = codecs.utf_16_be_decode elif consumed>=2: - raise UnicodeError,"UTF-16 stream does not start with BOM" + raise UnicodeError("UTF-16 stream does not start with BOM") return (object, consumed) ### encodings module API |