From 01c12f246247f3f7daffe599d8563b2374ff3bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sun, 17 Jan 2016 17:24:42 +0100 Subject: [PATCH] Syntax errors: Use the BaseLoader for safety --- yamllint/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yamllint/__init__.py b/yamllint/__init__.py index a2812f9..9e2b89e 100644 --- a/yamllint/__init__.py +++ b/yamllint/__init__.py @@ -58,7 +58,7 @@ def get_costemic_problems(buffer, conf): def get_syntax_error(buffer): try: - list(yaml.parse(buffer)) + list(yaml.parse(buffer, Loader=yaml.BaseLoader)) except yaml.error.MarkedYAMLError as e: problem = LintProblem(e.problem_mark.line + 1, e.problem_mark.column + 1,