]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)
authorJack DeVries <jdevries3133@gmail.com>
Sat, 13 Nov 2021 20:16:05 +0000 (15:16 -0500)
committerGitHub <noreply@github.com>
Sat, 13 Nov 2021 20:16:05 +0000 (12:16 -0800)
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
Doc/library/__main__.rst

index d92266e43b9612af722a79a4e08e3a9e896d333e..c5f36a7fcf077511b69450a168e006f3187d4dd0 100644 (file)
@@ -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