Skip to content

Gave main.py a more obvious entry point #11

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PrestonXPitzer
Copy link

In the original file, main.py had no main method, making it visually unclear where the entry point to the program was. I wrapped the dangling code in a main() method and added the if name == "main" idiom so IDE's and users can better distinguish which code is meant to be run.

This required a modification to the generate() and compare() functions, because originally the logger object was in the global scope. It is now passed between these functions, but the functionality is unchanged.

Tests pass

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.

1 participant