diff options
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) |