def CheckedEval(file_contents):
 ast = compiler.parse(file_contents)
 assert isinstance(ast, Module)
 c1 = ast.getChildren()
 assert (c1[0] is None)
 assert isinstance(c1[1], Stmt)
 c2 = c1[1].getChildren()
 assert isinstance(c2[0], Discard)
 c3 = c2[0].getChildren()
 assert (len(c3) == 1)
 return CheckNode(c3[0], [])

def CheckedEval ( file_contents ) : ast = compiler . parse ( file_contents ) assert isinstance ( ast , Module ) c1 = ast . getChildren ( ) assert ( c1 [ 0 ] is None ) assert isinstance ( c1 [ 1 ] , Stmt ) c2 = c1 [ 1 ] . getChildren ( ) assert isinstance ( c2 [ 0 ] , Discard ) c3 = c2 [ 0 ] . getChildren ( ) assert ( len ( c3 ) == 1 ) return CheckNode ( c3 [ 0 ] , [ ] )
return the eval of a gyp file .