diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-20 21:59:25 (GMT) |
commit | d13c3854629d605236c4d7cc8589a647b069207e (patch) | |
tree | de7c4a95117ecc763490fa17a6ef943873683ecd /Mac/Tools/IDE/PyEdit.py | |
parent | 3c0d013db40bd704908d7067228d35ed3f6b46c5 (diff) | |
download | cpython-d13c3854629d605236c4d7cc8589a647b069207e.zip cpython-d13c3854629d605236c4d7cc8589a647b069207e.tar.gz cpython-d13c3854629d605236c4d7cc8589a647b069207e.tar.bz2 |
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
Diffstat (limited to 'Mac/Tools/IDE/PyEdit.py')
-rw-r--r-- | Mac/Tools/IDE/PyEdit.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index bff5baf..0a0773e 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -114,7 +114,7 @@ class Editor(W.Window): def readwindowsettings(self): try: - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 1) except Res.Error: return try: @@ -127,10 +127,10 @@ class Editor(W.Window): def writewindowsettings(self): try: - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 3) except Res.Error: Res.CreateResFile(self.path) - resref = Res.OpenResFile(self.path) + resref = Res.FSpOpenResFile(self.path, 3) try: data = Res.Resource(marshal.dumps(self.settings)) Res.UseResFile(resref) |