src/eric7/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
155 number, column, code string and the error message. 155 number, column, code string and the error message.
156 @rtype list of dict 156 @rtype list of dict
157 """ 157 """
158 if codestring: 158 if codestring:
159 try: 159 try:
160 from yaml import MarkedYAMLError, safe_load_all # __IGNORE_WARNING_I10__ 160 from yaml import MarkedYAMLError, safe_load_all # __IGNORE_WARNING_I-10__
161 except ImportError: 161 except ImportError:
162 error = "pyyaml not available. Install it via the PyPI interface." 162 error = "pyyaml not available. Install it via the PyPI interface."
163 return [{"error": (file, 0, 0, "", error)}] 163 return [{"error": (file, 0, 0, "", error)}]
164 164
165 try: 165 try:

eric ide

mercurial