Files
codeql/python/ql/test/2/library-tests/ControlFlow/kinds/test.py
2019-02-08 14:49:04 +00:00

16 lines
325 B
Python

#All Python2 kinds of AST nodes, thus all Python2 of flow nodes
class C:
def stmts(p0, p1):
exec "print('Hello World')"
print "hello"
print >> fd, "hello"
if x:
print y
def exprs(p2, p3):
`x`
[ a + "Hi" for a in str(y) ]