Show More
@@ -708,7 +708,9 b' class path_auditor(object):' | |||||
708 | try: |
|
708 | try: | |
709 | st = os.lstat(curpath) |
|
709 | st = os.lstat(curpath) | |
710 | except OSError, err: |
|
710 | except OSError, err: | |
711 | if err.errno != errno.ENOENT: |
|
711 | # EINVAL can be raised as invalid path syntax under win32. | |
|
712 | # They must be ignored for patterns can be checked too. | |||
|
713 | if err.errno not in (errno.ENOENT, errno.EINVAL): | |||
712 | raise |
|
714 | raise | |
713 | else: |
|
715 | else: | |
714 | if stat.S_ISLNK(st.st_mode): |
|
716 | if stat.S_ISLNK(st.st_mode): |
General Comments 0
You need to be logged in to leave comments.
Login now