mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Always set type to APPL
This commit is contained in:
parent
b2f6a7ec00
commit
77b5828cf0
1 changed files with 3 additions and 4 deletions
|
|
@ -99,12 +99,11 @@ def process(template, filename):
|
||||||
dest.close()
|
dest.close()
|
||||||
tmpl.close()
|
tmpl.close()
|
||||||
|
|
||||||
# Copy the creator and type of the template to the destination
|
# Copy the creator of the template to the destination
|
||||||
# unless it already has one
|
# unless it already has one. Set type to APPL
|
||||||
|
|
||||||
tctor, ttype = MacOS.GetCreatorAndType(template)
|
tctor, ttype = MacOS.GetCreatorAndType(template)
|
||||||
ctor, type = MacOS.GetCreatorAndType(destname)
|
ctor, type = MacOS.GetCreatorAndType(destname)
|
||||||
if type in undefs: type = ttype
|
if type in undefs: type = 'APPL'
|
||||||
if ctor in undefs: ctor = tctor
|
if ctor in undefs: ctor = tctor
|
||||||
MacOS.SetCreatorAndType(destname, ctor, type)
|
MacOS.SetCreatorAndType(destname, ctor, type)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue