eric6/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8166
bd5cd5858503
child 8273
698ae46f40a4
equal deleted inserted replaced
8153:e01ae92db699 8176:31965986ecd1
349 349
350 if not self.__checkers: 350 if not self.__checkers:
351 # don't do anything, if no codes were selected 351 # don't do anything, if no codes were selected
352 return 352 return
353 353
354 source = "".join(self.__source)
355 try: 354 try:
356 compile(source, self.__filename, 'exec', ast.PyCF_ONLY_AST) 355 ast.parse("".join(self.__source), self.__filename)
357 except (SyntaxError, TypeError): 356 except (SyntaxError, TypeError):
358 self.__reportInvalidSyntax() 357 self.__reportInvalidSyntax()
359 return 358 return
360 359
361 for keyword in self.__keywords: 360 for keyword in self.__keywords:

eric ide

mercurial