Commit 28d9150
committed
Disable running
Allowing `greetings.__main__` to be runnable as a module didn't make much
sense, because the `greetings` module itself is already 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.greetings.__main__ as a module; use main()
1 parent 231207f commit 28d9150
1 file changed
Lines changed: 3 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 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments