mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
More raise statement normalization.
This commit is contained in:
parent
6cd2a2036d
commit
4902e69e40
4 changed files with 8 additions and 8 deletions
|
|
@ -127,7 +127,7 @@ class StreamReader(codecs.StreamReader):
|
|||
elif byteorder == 1:
|
||||
self.decode = codecs.utf_32_be_decode
|
||||
elif consumed>=4:
|
||||
raise UnicodeError,"UTF-32 stream does not start with BOM"
|
||||
raise UnicodeError("UTF-32 stream does not start with BOM")
|
||||
return (object, consumed)
|
||||
|
||||
### encodings module API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue