diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Mac | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Lib/maccache.py | 8 |
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' |