mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue