Skip to content

Commit

Permalink
bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)
Browse files Browse the repository at this point in the history
I was reading this bit last night and thought it was a typo. In the light of day, I realized it wasn't *technically* a typo, but definitely confusing wording. This PR fixes the confusing sentence.

Automerge-Triggered-By: GH:ericvsmith
  • Loading branch information
jdevries3133 committed Nov 13, 2021
1 parent 0486570 commit f8da00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/__main__.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Idiomatic Usage
^^^^^^^^^^^^^^^

Some modules contain code that is intended for script use only, like parsing
command-line arguments or fetching data from standard input. When a module
like this were to be imported from a different module, for example to unit test
command-line arguments or fetching data from standard input. If a module
like this was imported from a different module, for example to unit test
it, the script code would unintentionally execute as well.

This is where using the ``if __name__ == '__main__'`` code block comes in
Expand Down

0 comments on commit f8da00e

Please sign in to comment.