src/eric7/Plugins/CheckerPlugins/SyntaxChecker/tomlCheckSyntax.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 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."

eric ide

mercurial