summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/bundlebuilder.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-23 00:01:55 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-23 00:01:55 (GMT)
commite45be28be665a04aef0d0a7444ba27fde2dd2d5f (patch)
tree12b6261b32a5913ed104704734e7b7a15cd74e69 /Lib/plat-mac/bundlebuilder.py
parentcfe02a498b107a6436003e2bf7a48aefe4e3d59f (diff)
downloadcpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.zip
cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.gz
cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.bz2
Convert raise statements in Lib/plat-{mac,os2emx}.
Diffstat (limited to 'Lib/plat-mac/bundlebuilder.py')
-rwxr-xr-xLib/plat-mac/bundlebuilder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py
index f1ca5b8..4fee311 100755
--- a/Lib/plat-mac/bundlebuilder.py
+++ b/Lib/plat-mac/bundlebuilder.py
@@ -417,10 +417,10 @@ class AppBuilder(BundleBuilder):
def setup(self):
if ((self.standalone or self.semi_standalone)
and self.mainprogram is None):
- raise BundleBuilderError, ("must specify 'mainprogram' when "
+ raise BundleBuilderError("must specify 'mainprogram' when "
"building a standalone application.")
if self.mainprogram is None and self.executable is None:
- raise BundleBuilderError, ("must specify either or both of "
+ raise BundleBuilderError("must specify either or both of "
"'executable' and 'mainprogram'")
self.execdir = pathjoin("Contents", self.platform)
@@ -776,7 +776,7 @@ def makedirs(dir):
def symlink(src, dst, mkdirs=0):
"""Copy a file or a directory."""
if not os.path.exists(src):
- raise IOError, "No such file or directory: '%s'" % src
+ raise IOError("No such file or directory: '%s'" % src)
if mkdirs:
makedirs(os.path.dirname(dst))
os.symlink(os.path.abspath(src), dst)