8000
Skip to content

Remove python2 shebangs where appropriate#1692

Merged
Arusekk merged 2 commits intoGallopsled:devfrom
mariuszskon:fix/rpmlint
Oct 5, 2020
Merged

Remove python2 shebangs where appropriate#1692
Arusekk merged 2 commits intoGallopsled:devfrom
mariuszskon:fix/rpmlint

Conversation

@mariuszskon
Copy link
Copy Markdown
Contributor

Closes #1404
All non-scripts have had the shebang removed.
Other than the pwnlib/commandline directory, these scripts were found (so the shebang was not removed):

pwnlib/data/useragents/download-useragents.py
pwnlib/data/syscalls/generate.py

The empty files mentioned in #1404 appear to be used. __doc__ files in shellcraft are used in

with open(os.path.join(self._absdir, "__doc__")) as fd:

pwnlib/encoders/arm/alphanumeric/alphanumeric.py is indirectly imported through
from pwnlib.encoders.encoder import alphanumeric

This means the empty files were not removed.

@mariuszskon
Copy link
Copy Markdown
Contributor Author

Hmm, the coveralls output seems to have suddenly started considering the scripts so the coverage delta is relatively large, but I think it's a false positive.

I'm not sure what the PyLint errors are 😬

@Arusekk
Copy link
Copy Markdown
Member
Arusekk commented Oct 5, 2020

Easy, the pylint errors are due to line number changes (the simple line diff is not so great), especially that your changes are near the beginning.

@Arusekk Arusekk merged commit 1d6aa2e into Gallopsled:dev Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues identified while packaging pwntools

2 participants

0