From: Mariatta Date: Sat, 25 Mar 2017 10:42:38 +0000 (-0700) Subject: bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-812) X-Git-Tag: v3.5.4rc1~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55717b4b487a9ccc119ca501fad71937fa01d1f6;p=python bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-812) (cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f) --- diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index b6a9f82e05..8b11d22b02 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -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 a module") try: name = module.__spec__.name except AttributeError: