Kaydet (Commit) 470e7617 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use AttributeError.

üst aa3760d9
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment