156 number, column, code string and the error message. |
156 number, column, code string and the error message. |
157 @rtype list of dict |
157 @rtype list of dict |
158 """ |
158 """ |
159 if codestring: |
159 if codestring: |
160 try: |
160 try: |
161 import esprima # noqa: I101, I102 |
161 import esprima # noqa: I-101, I-102 |
162 except ImportError: |
162 except ImportError: |
163 error = "esprima not available. Install it via the PyPI interface." |
163 error = "esprima not available. Install it via the PyPI interface." |
164 return [{"error": (file, 0, 0, "", error)}] |
164 return [{"error": (file, 0, 0, "", error)}] |
165 |
165 |
166 try: |
166 try: |