def _os_path_isdir(pathname):
    "Local replacement for os.path.isdir()."
    try:
        s = _os_stat(pathname)
    except __HOLE__:
        return None
    return (s.st_mode & 0170000) == 0040000
dataset/ETHPy150Open anandology/pyjamas/pyjd/imputil.py/_os_path_isdir