]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102703: Fix typo in modules tutorial documentation (GH-102707)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Mar 2023 00:10:39 +0000 (17:10 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 00:10:39 +0000 (17:10 -0700)
**Before**
This prevents directories with a common name, such as ``string``, unintentionally hiding ...
**After**
This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
(cherry picked from commit 0a539b5db312d126ff45dd4aa6a53d40a292c512)

Co-authored-by: Robert Prater (B. Eng) <robcprater@gmail.com>
Doc/tutorial/modules.rst

index 5282c68603199f53f22753d9e812ecd0837d7a14..11a7c333ac1b25ed665d6aa17c355545913bc3fa 100644 (file)
@@ -434,7 +434,7 @@ When importing the package, Python searches through the directories on
 
 The :file:`__init__.py` files are required to make Python treat directories
 containing the file as packages.  This prevents directories with a common name,
-such as ``string``, unintentionally hiding valid modules that occur later
+such as ``string``, from unintentionally hiding valid modules that occur later
 on the module search path. In the simplest case, :file:`__init__.py` can just be
 an empty file, but it can also execute initialization code for the package or
 set the ``__all__`` variable, described later.