[Python-checkins] python/dist/src/Lib/plat-mac buildtools.py,1.3,1.4
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Wed, 05 Feb 2003 05:39:07 -0800
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv2325
Modified Files:
buildtools.py
Log Message:
Fixed a few typos, and changed FSCreateResourceFile filename argument to unicode.
Index: buildtools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/buildtools.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** buildtools.py 2 Feb 2003 23:03:50 -0000 1.3
--- buildtools.py 5 Feb 2003 13:39:04 -0000 1.4
***************
*** 55,59 ****
file, d1, d2 = Carbon.File.FSResolveAliasFile(file, 1)
break
! except (Carbon.File.error, ValueError):
continue
else:
--- 55,59 ----
file, d1, d2 = Carbon.File.FSResolveAliasFile(file, 1)
break
! except (Carbon.File.Error, ValueError):
continue
else:
***************
*** 176,180 ****
except MacOS.Error:
destdir, destfile = os.path.split(destname)
! Res.FSCreateResourceFile(destdir, destfile, RESOURCE_FORK_NAME)
output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
--- 176,180 ----
except MacOS.Error:
destdir, destfile = os.path.split(destname)
! Res.FSCreateResourceFile(destdir, unicode(destfile), RESOURCE_FORK_NAME)
output = Res.FSOpenResourceFile(destname, RESOURCE_FORK_NAME, WRITE)
***************
*** 262,266 ****
# 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_finfo = dest_fss.FSpGetFInfo()
dest_finfo.Creator = ownertype
--- 262,266 ----
# Now set the creator, type and bundle bit of the destination.
# Done with FSSpec's, FSRef FInfo isn't good enough yet (2.3a1+)
! dest_fss = Carbon.File.FSSpec(destname)
dest_finfo = dest_fss.FSpGetFInfo()
dest_finfo.Creator = ownertype