Skip to content

Remove default return value of compileall.main #27104

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

Closed
wants to merge 1 commit into from
Closed

Remove default return value of compileall.main #27104

wants to merge 1 commit into from

Conversation

donno2048
Copy link
Contributor

The function will return either way in one of those lines: 458, 452, 450 in the try-except block

The function will return either way in one of those lines: `458`, `452`, `450` in the try-except block
@ambv
Copy link
Contributor

ambv commented Jul 13, 2021

What issue is this referring to? As it stands I'm -1 to this change as relying on previous branches always exiting is brittle in this function. I consider the extra return "future-proofing" of sorts.

@donno2048 donno2048 changed the title Remove unneeded return Remove default return value of compileall.main Jul 13, 2021
@ambv
Copy link
Contributor

ambv commented Jul 16, 2021

As explained above, I'd like to retain the default return even if currently not used.

@ambv ambv closed this Jul 16, 2021
@donno2048 donno2048 deleted the patch-2 branch July 16, 2021 15:43
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.

4 participants