mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Convert some old-style string exceptions to class exceptions.
This commit is contained in:
parent
de9fec5f99
commit
9b8d801c37
6 changed files with 14 additions and 6 deletions
|
|
@ -128,7 +128,8 @@ _simple_encodings = [AUDIO_FILE_ENCODING_MULAW_8,
|
|||
AUDIO_FILE_ENCODING_LINEAR_32,
|
||||
AUDIO_FILE_ENCODING_ALAW_8]
|
||||
|
||||
Error = 'sunau.Error'
|
||||
class Error(Exception):
|
||||
pass
|
||||
|
||||
def _read_u32(file):
|
||||
x = 0L
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue