зеркало из https://github.com/github/codeql.git
Merge pull request #12461 from yoff/python/add-api-test-captured
python: add test documenting effect of scopes
This commit is contained in:
Коммит
b3fa844322
|
@ -0,0 +1,14 @@
|
|||
from html import escape
|
||||
|
||||
def p(x):
|
||||
return escape(x) #$ use=moduleImport("html").getMember("escape").getReturn()
|
||||
|
||||
def p_list(l):
|
||||
return ", ".join(p(x) for x in l) #$ use=moduleImport("html").getMember("escape").getReturn()
|
||||
|
||||
def pp_list(l):
|
||||
def pp(x):
|
||||
return escape(x) #$ use=moduleImport("html").getMember("escape").getReturn()
|
||||
|
||||
def pp_list_inner(l):
|
||||
return ", ".join(pp(x) for x in l) #$ MISSING: use=moduleImport("html").getMember("escape").getReturn()
|
Загрузка…
Ссылка в новой задаче