summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:05:43 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:05:43 (GMT)
commit470e7617a999b4ed1ac0118798a07fe7a5ff883c (patch)
treebab050ae69c3a4294885bdf00318239515082622
parentaa3760d91d66011aaafbccaeef8827f76e4b4230 (diff)
downloadcpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.zip
cpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.tar.gz
cpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.tar.bz2
Use AttributeError.
-rw-r--r--Lib/posixpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 7c13458..9a2ccb0 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -95,7 +95,7 @@ def isdir(path):
def islink(path):
try:
st = posix.lstat(path)
- except (posix.error, NameError):
+ except (posix.error, AttributeError):
return 0
return stat.S_ISLNK(st[stat.ST_MODE])