exec
PYL-W0122 88
89async def aexec(code, b, m, r, d):
90 sys.tracebacklimit = 0
91 exec( 92 "async def __aexec(b, m, r, d): "
93 + "".join(f"\n {line}" for line in code.split("\n"))
94 )
Usage of exec
function is strongly discouraged, since it opens up possibilities of unauthorized code execution if the statements are not escaped properly. Read more on why should exec
be avoided here.