def fake_access(path, mode):
 if (mode & (os.W_OK | os.X_OK)):
  return False
 else:
  return FakeFile.is_file_accessible(path)

def fake_access ( path , mode ) : if ( mode & ( os . W_OK | os . X_OK ) ) : return False else : return FakeFile . is_file_accessible ( path )
fake version of os .