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 redundant __name__ check in multiple files #4222

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

Tameem97
Copy link
Contributor

@Tameem97 Tameem97 commented Apr 10, 2023

Removed the redundant __name__ checks in Python 3 files. In Python 3, __name__ is implicitly set and will never be None, making this condition always true. Did not modify any of Python 2 files since I am not sure about Python 2, but I think the same logic may also apply.

Signed-off-by: Ahmad Tameem <ahmad.tameem97@gmail.com>
@ericvergnaud
Copy link
Contributor

@parrt blessed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants