summaryrefslogtreecommitdiffstats
path: root/Lib/statcache.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-31 19:04:48 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-31 19:04:48 (GMT)
commit25d7cafd8a0650c9ca5185e095f85745b229acdc (patch)
tree40fa47bc8b8e76f18f53558957811cfa0402b358 /Lib/statcache.py
parent3bc034bb7982078514acb829dcd95ffe67ea2d48 (diff)
downloadcpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.zip
cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.gz
cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.bz2
posix -> os
Diffstat (limited to 'Lib/statcache.py')
-rw-r--r--Lib/statcache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/statcache.py b/Lib/statcache.py
index bf13eb5..04381f3 100644
--- a/Lib/statcache.py
+++ b/Lib/statcache.py
@@ -3,11 +3,11 @@
# Maintain a cache of file stats.
# There are functions to reset the cache or to selectively remove items.
-import posix
+import os
from stat import *
# The cache.
-# Keys are pathnames, values are `posix.stat' outcomes.
+# Keys are pathnames, values are `os.stat' outcomes.
#
cache = {}
@@ -17,7 +17,7 @@ cache = {}
def stat(path):
if cache.has_key(path):
return cache[path]
- cache[path] = ret = posix.stat(path)
+ cache[path] = ret = os.stat(path)
return ret
@@ -81,6 +81,6 @@ def forget_except_prefix(prefix):
def isdir(path):
try:
st = stat(path)
- except posix.error:
+ except os.error:
return 0
return S_ISDIR(st[ST_MODE])