From afa99e6d9deec31ee249c12694ab9e1af9bea4b8 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Fri, 7 Jun 2019 03:39:25 +0800 Subject: [PATCH] Use yaml.safe_load. (#4537) --- tests/ci_build/tidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci_build/tidy.py b/tests/ci_build/tidy.py index c6cb5ccf0..d51d0fd2d 100755 --- a/tests/ci_build/tidy.py +++ b/tests/ci_build/tidy.py @@ -164,7 +164,7 @@ class ClangTidy(object): self.compile_commands = json.load(fd) tidy_file = os.path.join(self.root_path, '.clang-tidy') with open(tidy_file) as fd: - self.clang_tidy = yaml.load(fd) + self.clang_tidy = yaml.safe_load(fd) self.clang_tidy = str(self.clang_tidy) all_files = [] for entry in self.compile_commands: