mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
This commit is contained in:
parent
3c0d013db4
commit
d13c385462
14 changed files with 21 additions and 21 deletions
|
@ -34,7 +34,7 @@ def mergecfmfiles(srclist, dst, architecture = 'fat'):
|
|||
dst = dst.as_pathname()
|
||||
|
||||
dstfile = open(dst, "wb")
|
||||
rf = Res.OpenResFile(dst)
|
||||
rf = Res.FSpOpenResFile(dst, 3)
|
||||
try:
|
||||
dstcfrg = CfrgResource()
|
||||
for src in srclist:
|
||||
|
@ -64,7 +64,7 @@ class CfrgResource:
|
|||
self.path = path
|
||||
if path is not None and os.path.exists(path):
|
||||
currentresref = Res.CurResFile()
|
||||
resref = Res.OpenResFile(path)
|
||||
resref = Res.FSpOpenResFile(path, 1)
|
||||
Res.UseResFile(resref)
|
||||
try:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue