Commit 2fba17b
committed
Simplify the launcher
Having `if __name__ == "__main__"` in `__main__.py` is redundant,
because the `greetings` module itself is runnable due to the mere
existence of the `__main__.py` file.
Importing just the `main()` function is likely more common and concise
than relying on the heavy-weight `app` object to be callable.1 parent 01a7007 commit 2fba17b
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments