Skip to content
New issue

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

remove python2 shebang in hash module #498

Closed
lukpueh opened this issue Jan 31, 2023 · 0 comments · Fixed by #544
Closed

remove python2 shebang in hash module #498

lukpueh opened this issue Jan 31, 2023 · 0 comments · Fixed by #544

Comments

@lukpueh
Copy link
Member

lukpueh commented Jan 31, 2023

Description of issue or feature request:
securesystemslib/hash.py has a python2 shebang line, which is obsolete (Py2 support was dropped a while ago) and wrong (no need run the module by itself).

Current behavior:

#!/usr/bin/env python2

Expected behavior:
No shebang line.

Bonus task:

Review eligibility of shebang lines in other modules too.

ckilcoin pushed a commit to ckilcoin/securesystemslib that referenced this issue Mar 21, 2023
Python2 support has been dropped and we do not need to run the
module by itself.
mnm678 added a commit that referenced this issue Mar 21, 2023
ckilcoin pushed a commit to ckilcoin/securesystemslib that referenced this issue Mar 21, 2023
Followup from work in secure-systems-lab#544 and secure-systems-lab#498
Other instances are in diff files, actual generated python code,
or unrelated to python shebang instances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant