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 import tomlkit # __IGNORE_WARNING_I10__ |
160 import tomlkit # __IGNORE_WARNING_I-10__ |
161 |
161 |
162 from tomlkit.exceptions import ( # __IGNORE_WARNING_I10__ |
162 from tomlkit.exceptions import ( # __IGNORE_WARNING_I-10__ |
163 KeyAlreadyPresent, |
163 KeyAlreadyPresent, |
164 ParseError, |
164 ParseError, |
165 ) |
165 ) |
166 except ImportError: |
166 except ImportError: |
167 error = "tomlkit not available. Install it via the PyPI interface." |
167 error = "tomlkit not available. Install it via the PyPI interface." |