Syntax errors: Use the BaseLoader for safety

pull/4/head
Adrien Vergé 9 years ago
parent 918f15b68d
commit 01c12f2462

@ -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,

Loading…
Cancel
Save