diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-05-12 11:24:33 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-05-12 11:24:33 (GMT) |
commit | 81af68ee6123f87c368c95d384a934b7e501ebf0 (patch) | |
tree | fcd35b7cd5f9bab42645223e0cc4eccbb35c4ac5 /Lib/tempfile.py | |
parent | 6a0a36847962c080652e16c15f8261c0c02411a7 (diff) | |
download | cpython-81af68ee6123f87c368c95d384a934b7e501ebf0.zip cpython-81af68ee6123f87c368c95d384a934b7e501ebf0.tar.gz cpython-81af68ee6123f87c368c95d384a934b7e501ebf0.tar.bz2 |
Remove references to platform 'mac'
The 'mac' platform (that is, os.name == 'mac') was used for the MacOS 9 port,
which is no longer supported (as of Python 2.4 IIRC).
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 84ec6e0..b0fd87d 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -33,10 +33,6 @@ import os as _os import errno as _errno from random import Random as _Random -if _os.name == 'mac': - import Carbon.Folder as _Folder - import Carbon.Folders as _Folders - try: from cStringIO import StringIO as _StringIO except ImportError: @@ -153,15 +149,7 @@ def _candidate_tempdir_list(): if dirname: dirlist.append(dirname) # Failing that, try OS-specific locations. - if _os.name == 'mac': - try: - fsr = _Folder.FSFindFolder(_Folders.kOnSystemDisk, - _Folders.kTemporaryFolderType, 1) - dirname = fsr.as_pathname() - dirlist.append(dirname) - except _Folder.error: - pass - elif _os.name == 'riscos': + if _os.name == 'riscos': dirname = _os.getenv('Wimp$ScrapDir') if dirname: dirlist.append(dirname) elif _os.name == 'nt': |