Files
codeql/python/ql/test/query-tests/Variables/undefined/captured.py
Rasmus Lerchedahl Petersen b042c60ca3 python: remove outdated comment
2023-03-20 14:13:48 +01:00

15 lines
157 B
Python

#!/usr/bin/python
def topLevel():
foo = 3
def bar():
nonlocal foo
print(foo)
foo = 4
bar()
print(foo)
topLevel()