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
b65b006595
commit
def003845b
8 changed files with 20 additions and 10 deletions
|
|
@ -5,7 +5,8 @@
|
|||
# XXX It appears that compressing grayscale images doesn't work right;
|
||||
# XXX the resulting file causes weirdness.
|
||||
|
||||
error = 'jpeg.error' # Exception
|
||||
class error(Exception):
|
||||
pass
|
||||
|
||||
options = {'quality': 75, 'optimize': 0, 'smooth': 0, 'forcegray': 0}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue