summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/MacPrefs.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 (GMT)
commit362c7cd07bd32f94e80e5ca954834cfbc1709953 (patch)
tree8f929854033e856a2bf29d9167da8c98f754a416 /Mac/Tools/IDE/MacPrefs.py
parent202355a333b98213449b30dcbfa620be86c96085 (diff)
downloadcpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.zip
cpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.tar.gz
cpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.tar.bz2
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
Diffstat (limited to 'Mac/Tools/IDE/MacPrefs.py')
-rw-r--r--Mac/Tools/IDE/MacPrefs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/IDE/MacPrefs.py b/Mac/Tools/IDE/MacPrefs.py
index b1fa7ca..716c828 100644
--- a/Mac/Tools/IDE/MacPrefs.py
+++ b/Mac/Tools/IDE/MacPrefs.py
@@ -70,7 +70,7 @@ class PrefFile(PrefObject):
else:
prefdict[key] = value
marshal.dump(prefdict, open(self.__path, 'wb'))
- fss = macfs.FSSpec(self.__path)
+ fss = macfs.FSSpec(macfs.FSRef(self.__path))
fss.SetCreatorType(self.__creator, 'pref')
def __getattr__(self, attr):
@@ -97,7 +97,7 @@ def GetPrefs(prefname, creator = 'Pyth'):
# Find the preferences folder and our prefs file, create if needed.
vrefnum, dirid = macfs.FindFolder(kOnSystemDisk, 'pref', 0)
prefsfolder_fss = macfs.FSSpec((vrefnum, dirid, ''))
- prefsfolder = prefsfolder_fss.as_pathname()
+ prefsfolder = macfs.FSRef(prefsfolder_fss).as_fsspec().as_pathname()
path = os.path.join(prefsfolder, prefname)
head, tail = os.path.split(path)
# make sure the folder(s) exist