Use of exec
6
7VERSION = {}
8with open("scm_helper/version.py") as fh:
9 exec(fh.read(), VERSION)10
11setuptools.setup(
12 name="scm-helper",
Description
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.