summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-03-21 12:55:38 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-03-21 12:55:38 +0000
commitdd72bfc356a99834145752bf00504972e29c7cb6 (patch)
treead360fcdd2017707d054ab15297d9abd1be76e15 /Lib/tempfile.py
parent66adf2b052ab77066dbc96f74fbb990f658b6820 (diff)
downloadcpython-dd72bfc356a99834145752bf00504972e29c7cb6.tar.gz
Getting rid of macfs.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index d322d8fc40..3682180d8e 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -33,8 +33,8 @@ import errno as _errno
from random import Random as _Random
if _os.name == 'mac':
- import macfs as _macfs
- import MACFS as _MACFS
+ import Carbon.Folder as _Folder
+ import Carbon.Folders as _Folders
try:
import fcntl as _fcntl
@@ -124,11 +124,11 @@ def _candidate_tempdir_list():
# Failing that, try OS-specific locations.
if _os.name == 'mac':
try:
- refnum, dirid = _macfs.FindFolder(_MACFS.kOnSystemDisk,
- _MACFS.kTemporaryFolderType, 1)
- dirname = _macfs.FSSpec((refnum, dirid, '')).as_pathname()
+ fsr = _Folder.FSFindFolder(_Folders.kOnSystemDisk,
+ _Folders.kTemporaryFolderType, 1)
+ dirname = fsr.as_pathname()
dirlist.append(dirname)
- except _macfs.error:
+ except _Folder.error:
pass
elif _os.name == 'riscos':
dirname = _os.getenv('Wimp$ScrapDir')