summaryrefslogtreecommitdiff
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-27 23:18:46 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-02-27 23:18:46 +0000
commit98fc683719ed2c4c99b89b8e8f3762fe79a0be9f (patch)
tree749bb97fea02db44e1a3e271dfe260da0d0e7195 /Lib/macpath.py
parentabeb7d5f7f8a7db4431521f460d964ff390b4c3c (diff)
downloadcpython-git-98fc683719ed2c4c99b89b8e8f3762fe79a0be9f.tar.gz
Getting rid of macfs.
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index 8277d41b17..695fac9132 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -129,8 +129,8 @@ def islink(s):
"""Return true if the pathname refers to a symbolic link."""
try:
- import macfs
- return macfs.ResolveAliasFile(s)[2]
+ import Carbon.File
+ return Carbon.File.ResolveAliasFile(s, 0)[2]
except:
return False
@@ -247,7 +247,7 @@ def abspath(path):
def realpath(path):
path = abspath(path)
try:
- import macfs
+ import Carbon.File
except ImportError:
return path
if not path:
@@ -256,7 +256,7 @@ def realpath(path):
path = components[0] + ':'
for c in components[1:]:
path = join(path, c)
- path = macfs.ResolveAliasFile(path)[0].as_pathname()
+ path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
return path
supports_unicode_filenames = False