diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-18 14:59:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-18 14:59:33 (GMT) |
commit | def003845b687b785f70d655a5372906f7e042d2 (patch) | |
tree | 71a16f3fac942109fc2eb167feb253ec66bcf908 /Lib/plat-irix6 | |
parent | b65b0065954ce1a410d8309529a5239b7da2bcfd (diff) | |
download | cpython-def003845b687b785f70d655a5372906f7e042d2.zip cpython-def003845b687b785f70d655a5372906f7e042d2.tar.gz cpython-def003845b687b785f70d655a5372906f7e042d2.tar.bz2 |
Convert some old-style string exceptions to class exceptions.
Diffstat (limited to 'Lib/plat-irix6')
-rw-r--r-- | Lib/plat-irix6/flp.py | 3 | ||||
-rw-r--r-- | Lib/plat-irix6/jpeg.py | 3 | ||||
-rw-r--r-- | Lib/plat-irix6/readcd.py | 6 | ||||
-rw-r--r-- | Lib/plat-irix6/torgb.py | 3 |
4 files changed, 10 insertions, 5 deletions
diff --git a/Lib/plat-irix6/flp.py b/Lib/plat-irix6/flp.py index 9f1957f..6c6dae5 100644 --- a/Lib/plat-irix6/flp.py +++ b/Lib/plat-irix6/flp.py @@ -12,7 +12,8 @@ SPLITLINE = '--------------------' FORMLINE = '=============== FORM ===============' ENDLINE = '==============================' -error = 'flp.error' +class error(Exception): + pass ################################################################## # Part 1 - The parsing routines # diff --git a/Lib/plat-irix6/jpeg.py b/Lib/plat-irix6/jpeg.py index c1ed669..1af6a01 100644 --- a/Lib/plat-irix6/jpeg.py +++ b/Lib/plat-irix6/jpeg.py @@ -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} diff --git a/Lib/plat-irix6/readcd.py b/Lib/plat-irix6/readcd.py index 5c4b824..403353f 100644 --- a/Lib/plat-irix6/readcd.py +++ b/Lib/plat-irix6/readcd.py @@ -2,8 +2,10 @@ import cd, CD -Error = 'Readcd.Error' -_Stop = 'Readcd.Stop' +class Error(Exception): + pass +class _Stop(Exception): + pass def _doatime(self, cb_type, data): if ((data[0] * 60) + data[1]) * 75 + data[2] > self.end: diff --git a/Lib/plat-irix6/torgb.py b/Lib/plat-irix6/torgb.py index f283063..59e3fbe 100644 --- a/Lib/plat-irix6/torgb.py +++ b/Lib/plat-irix6/torgb.py @@ -50,7 +50,8 @@ uncompress = pipes.Template() uncompress.append('uncompress', '--') -error = 'torgb.error' # Exception +class error(Exception): + pass def torgb(filename): temps = [] |