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

Code style enhancements and less sphinx warnings #1570

Merged
merged 7 commits into from
Jun 23, 2020

Conversation

Arusekk
Copy link
Member

@Arusekk Arusekk commented Jun 9, 2020

This is several code style fixes, described in detail in this PR's commit messages.

pwnlib/elf/elf.py Show resolved Hide resolved
pwnlib/tubes/remote.py Show resolved Hide resolved
@@ -97,11 +97,11 @@ def yesno(prompt, default=None):
cur = default
while True:
k = term.key.get()
if k in ('y', 'Y', '<left>') and cur != True:
if k in ('y', 'Y', '<left>') and cur is not True:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely be not cur or similar. We should generally not check for is True or is False.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @Arusekk

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the value can be either of three: True, False or None. You are probably right, if you prefer so, you can commit this further change.

@heapcrash heapcrash added this to the Someday milestone Jun 16, 2020
@heapcrash heapcrash merged commit c3e39f5 into Gallopsled:dev Jun 23, 2020
@Arusekk Arusekk deleted the docfix branch June 23, 2020 16:52
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.

3 participants