From d2edf150cf2c876971383a4a484f289ce7e7f680 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 6 Jan 2025 16:22:23 -0500 Subject: Remove Python main idiom and add coding conventions to README.md I realized I don't need this stupid `__main__` convention anymore because my build system always calls Python programs like `python -m main`, so I just need to have a function named `main()`. I also started adding some general coding conventions to the README and fixed a typo. --- Omni/Bild/Example.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Omni/Bild') diff --git a/Omni/Bild/Example.py b/Omni/Bild/Example.py index 462a497..58e941a 100755 --- a/Omni/Bild/Example.py +++ b/Omni/Bild/Example.py @@ -40,7 +40,3 @@ def main() -> None: if "test" in sys.argv: sys.stdout.write("testing success") sys.stdout.write(cryptic_hello("world")) - - -if __name__ == "__main__": - main() -- cgit v1.2.3