Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50399ae

Browse files
committed
mac -> os (can't this go now dircache is universal?)
1 parent d9596e3 commit 50399ae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Mac/Lib/maccache.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Module 'maccache'
22
#
33
# Maintain a cache of listdir(), isdir(), isfile() or exists() outcomes.
4+
# XXX Should merge with module statcache
45

5-
import mac
6-
import macpath
6+
import os
77

88

99
# The cache.
@@ -15,7 +15,7 @@
1515

1616
# Current working directory.
1717
#
18-
cwd = mac.getcwd()
18+
cwd = os.getcwd()
1919

2020

2121
# Constants.
@@ -25,14 +25,14 @@
2525
LISTTYPE = type([])
2626

2727
def _stat(name):
28-
name = macpath.join(cwd, name)
28+
name = os.path.join(cwd, name)
2929
if cache.has_key(name):
3030
return cache[name]
31-
if macpath.isfile(name):
31+
if os.path.isfile(name):
3232
cache[name] = FILE
3333
return FILE
3434
try:
35-
list = mac.listdir(name)
35+
list = os.listdir(name)
3636
except:
3737
cache[name] = NONE
3838
return NONE

0 commit comments

Comments
 (0)