173 (file name, line number, column, codestring (only at syntax |
173 (file name, line number, column, codestring (only at syntax |
174 errors), the message, a list with arguments for the message) |
174 errors), the message, a list with arguments for the message) |
175 @rtype dict |
175 @rtype dict |
176 """ |
176 """ |
177 try: |
177 try: |
178 from yaml import MarkedYAMLError, safe_load_all |
178 from yaml import MarkedYAMLError, safe_load_all # __IGNORE_WARNING_I10__ |
179 except ImportError: |
179 except ImportError: |
180 error = "pyyaml not available. Install it via the PyPI interface." |
180 error = "pyyaml not available. Install it via the PyPI interface." |
181 return [{"error": (file, 0, 0, "", error)}] |
181 return [{"error": (file, 0, 0, "", error)}] |
182 |
182 |
183 codestring = normalizeCode(codestring) |
183 codestring = normalizeCode(codestring) |