eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py

changeset 8166
bd5cd5858503
parent 7923
91e843545d9a
child 8198
1c765dc90c21
equal deleted inserted replaced
8165:61ca9619decb 8166:bd5cd5858503
160 Private method to generate an AST for our source. 160 Private method to generate an AST for our source.
161 161
162 @return generated AST 162 @return generated AST
163 @rtype ast.Module 163 @rtype ast.Module
164 """ 164 """
165 source = "".join(self.__source) 165 return ast.parse("".join(self.__source), self.__filename)
166 return compile(source, self.__filename, 'exec', ast.PyCF_ONLY_AST)
167 166
168 def run(self): 167 def run(self):
169 """ 168 """
170 Public method to check the given source against annotation issues. 169 Public method to check the given source against annotation issues.
171 """ 170 """

eric ide

mercurial