environment/lib/python2.7/site-packages/psutil/_common.py
def isfile_strict(path):
    """Same as os.path.isfile() but does not swallow EACCES / EPERM
    exceptions, see:
    http://mail.python.org/pipermail/python-dev/2012-June/120787.html
    """
    try:
        st = os.stat(path)
    except OSError:
        err = sys.exc_info()[1]
        if err.errno in (errno.EPERM, errno.EACCES):
            raise
        return False
    else:
        return stat.S_ISREG(st.st_mode)
def isfile_strict(path):
    """Same as os.path.isfile() but does not swallow EACCES / EPERM
    exceptions, see:
    http://mail.python.org/pipermail/python-dev/2012-June/120787.html
    """
    try:
        st = os.stat(path)
    except OSError:
        err = sys.exc_info()[1]
        if err.errno in (errno.EPERM, errno.EACCES):
            raise
        return False
    else:
        return stat.S_ISREG(st.st_mode)
def isfile_strict ( path ) : try : st = os . stat ( path ) except OSError : err = sys . exc_info ( ) [ 1 ] if err . errno in ( errno . EPERM , errno . EACCES ) : raise return False else : return stat . S_ISREG ( st . st_mode )
Same as os.path.isfile() but does not swallow EACCES / EPERM
    exceptions, see:
    http://mail.python.org/pipermail/python-dev/2012-June/120787.html
Same as os . path . isfile () but does not swallow EACCES / EPERM exceptions see : http : // mail . python . org / pipermail / python - dev / 2012 - June / 120787 . html