Skip to content

Commit f8da00e

Browse files
authored
bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)
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
1 parent 0486570 commit f8da00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/__main__.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ Idiomatic Usage
116116
^^^^^^^^^^^^^^^
117117

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

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

0 commit comments

Comments
 (0)