summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/maccache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Lib/maccache.py b/Mac/Lib/maccache.py
index 47b673c..725f10e 100644
--- a/Mac/Lib/maccache.py
+++ b/Mac/Lib/maccache.py
@@ -37,17 +37,17 @@ def _stat(name):
cache[name] = NONE
return NONE
cache[name] = list
- if name[-1:] = ':': cache[name[:-1]] = list
+ if name[-1:] == ':': cache[name[:-1]] = list
else: cache[name+':'] = list
return list
def isdir(name):
st = _stat(name)
- return type(st) = LISTTYPE
+ return type(st) == LISTTYPE
def isfile(name):
st = _stat(name)
- return st = FILE
+ return st == FILE
def exists(name):
st = _stat(name)
@@ -55,7 +55,7 @@ def exists(name):
def listdir(name):
st = _stat(name)
- if type(st) = LISTTYPE:
+ if type(st) == LISTTYPE:
return st
else:
raise RuntimeError, 'list non-directory'