]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)
authorMariatta <Mariatta@users.noreply.github.com>
Sat, 25 Mar 2017 10:41:59 +0000 (03:41 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2017 10:41:59 +0000 (03:41 -0700)
(cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f)

Lib/importlib/__init__.py

index b6a9f82e05f268153b50b54a45bf091c4e6afc8b..8b11d22b024ffae84eabe332675083da44c4a49d 100644 (file)
@@ -136,7 +136,7 @@ def reload(module):
 
     """
     if not module or not isinstance(module, types.ModuleType):
-        raise TypeError("reload() argument must be module")
+        raise TypeError("reload() argument must be module")
     try:
         name = module.__spec__.name
     except AttributeError: