diff options
author | Guido van Rossum <guido@python.org> | 1991-12-26 13:05:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:05:43 (GMT) |
commit | 470e7617a999b4ed1ac0118798a07fe7a5ff883c (patch) | |
tree | bab050ae69c3a4294885bdf00318239515082622 /Lib/posixpath.py | |
parent | aa3760d91d66011aaafbccaeef8827f76e4b4230 (diff) | |
download | cpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.zip cpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.tar.gz cpython-470e7617a999b4ed1ac0118798a07fe7a5ff883c.tar.bz2 |
Use AttributeError.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 2 |
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]) |