diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 (GMT) |
commit | e45be28be665a04aef0d0a7444ba27fde2dd2d5f (patch) | |
tree | 12b6261b32a5913ed104704734e7b7a15cd74e69 /Lib/plat-mac/macresource.py | |
parent | cfe02a498b107a6436003e2bf7a48aefe4e3d59f (diff) | |
download | cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.zip cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.gz cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.bz2 |
Convert raise statements in Lib/plat-{mac,os2emx}.
Diffstat (limited to 'Lib/plat-mac/macresource.py')
-rw-r--r-- | Lib/plat-mac/macresource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py index fc8b381..14581a3 100644 --- a/Lib/plat-mac/macresource.py +++ b/Lib/plat-mac/macresource.py @@ -19,7 +19,7 @@ def need(restype, resid, filename=None, modname=None): Returns the refno of the resource file opened (or None)""" if modname is None and filename is None: - raise ArgumentError, "Either filename or modname argument (or both) must be given" + raise ArgumentError("Either filename or modname argument (or both) must be given") if type(resid) is type(1): try: @@ -60,7 +60,7 @@ def need(restype, resid, filename=None, modname=None): if os.path.exists(pathname): break else: - raise ResourceFileNotFoundError, filename + raise ResourceFileNotFoundError(filename) refno = open_pathname(pathname) |