misc,python: Run pre-commit run --all-files
Applies the `pyupgrade` hook to all files in the repo. Change-Id: I9879c634a65c5fcaa9567c63bc5977ff97d5d3bf
This commit is contained in:
@@ -189,7 +189,7 @@ def run_config(config, argv=None):
|
||||
src_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))
|
||||
abs_path = joinpath(src_root, config)
|
||||
|
||||
code = compile(open(abs_path, "r").read(), abs_path, "exec")
|
||||
code = compile(open(abs_path).read(), abs_path, "exec")
|
||||
scope = {"__file__": config, "__name__": "__m5_main__"}
|
||||
|
||||
# Set the working directory in case we are executing from
|
||||
|
||||
Reference in New Issue
Block a user