We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I prefer to get rid of calls to eval for security reasons,
eval
Especially in a setup.py file where one wouldn't expect code to run just by importing the file.
If someone malicious were to make a file in the right place they could get an arbitrary line of code to run.
Let's see if we can change the line
if line.startswith("__version__ ="): version = eval(line.split("=", 1)[1]) break
to
if line.startswith("__version__ ="): version = line.split("=", 1) version = version.replace('"', '').replace("'", '') version = version.strip() break
The text was updated successfully, but these errors were encountered:
No reason why we can't, would you like to submit a PR?
Sorry, something went wrong.
Thanks!
Thank you!
No branches or pull requests
I prefer to get rid of calls to
eval
for security reasons,Especially in a setup.py file where one wouldn't expect code to run just by importing the file.
If someone malicious were to make a file in the right place they could get an arbitrary line of code to run.
Let's see if we can change the line
to
The text was updated successfully, but these errors were encountered: