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,