summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/buildtools.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-05 13:39:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-05 13:39:04 (GMT)
commit769e1ff4a134cce66f4bd8ead4c56668ec6bfe30 (patch)
tree5658001c01923d17784ae0586568deb46f713796 /Lib/plat-mac/buildtools.py
parent8d4f06a73a4b68a2aa6663d3bb0bf83cf459262d (diff)
downloadcpython-769e1ff4a134cce66f4bd8ead4c56668ec6bfe30.zip
cpython-769e1ff4a134cce66f4bd8ead4c56668ec6bfe30.tar.gz
cpython-769e1ff4a134cce66f4bd8ead4c56668ec6bfe30.tar.bz2
Fixed a few typos, and changed FSCreateResourceFile filename argument to unicode.
Diffstat (limited to 'Lib/plat-mac/buildtools.py')
-rw-r--r--Lib/plat-mac/buildtools.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index 4cea10f..7cafce5 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -54,7 +54,7 @@ def findtemplate(template=None):
try:
file, d1, d2 = Carbon.File.FSResolveAliasFile(file, 1)
break
- except (Carbon.File.error, ValueError):
+ except (Carbon.File.Error, ValueError):
continue
else:
raise BuildError, "Template %s not found on sys.path" % `template`
@@ -175,7 +175,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update,
output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
except MacOS.Error:
destdir, destfile = os.path.split(destname)
- Res.FSCreateResourceFile(destdir, destfile, RESOURCE_FORK_NAME)
+ Res.FSCreateResourceFile(destdir, unicode(destfile), RESOURCE_FORK_NAME)
output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
# Copy the resources from the target specific resource template, if any
@@ -261,7 +261,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update,
# Now set the creator, type and bundle bit of the destination.
# Done with FSSpec's, FSRef FInfo isn't good enough yet (2.3a1+)
- dset_fss = Carbon.File.FSSpec(destname)
+ dest_fss = Carbon.File.FSSpec(destname)
dest_finfo = dest_fss.FSpGetFInfo()
dest_finfo.Creator = ownertype
dest_finfo.Type = 'APPL'