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

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
252 def showwarning( 252 def showwarning(
253 message, 253 message,
254 category, 254 category,
255 filename, 255 filename,
256 lineno, 256 lineno,
257 file=None, # noqa: U100 257 file=None, # noqa: U-100
258 line=None, # noqa: U100 258 line=None, # noqa: U-100
259 ): 259 ):
260 pyWarnings.append( 260 pyWarnings.append(
261 ( 261 (
262 filename, 262 filename,
263 lineno, 263 lineno,
289 } 289 }
290 ] 290 ]
291 291
292 if filename.endswith(".ptl"): 292 if filename.endswith(".ptl"):
293 try: 293 try:
294 import quixote.ptl_compile # __IGNORE_WARNING_I10__ 294 import quixote.ptl_compile # __IGNORE_WARNING_I-10__
295 except ImportError: 295 except ImportError:
296 return [ 296 return [
297 {"error": (filename, 0, 0, "", "Quixote plugin not found.")} 297 {"error": (filename, 0, 0, "", "Quixote plugin not found.")}
298 ] 298 ]
299 template = quixote.ptl_compile.Template(codestring, filename) 299 template = quixote.ptl_compile.Template(codestring, filename)

eric ide

mercurial