1 2 3
def foo(file_path): with open(file_path, "rwx") as file: # [bad-open-mode] contents = file.read()