From 19dd5a002cab1ba7462c095ebbbd1c88798c4a1e Mon Sep 17 00:00:00 2001 From: Mandeep Bhutani Date: Fri, 24 Mar 2017 23:51:21 -0500 Subject: [PATCH] bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f) --- Lib/importlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index b6a9f82e05f2681..8b11d22b024ffae 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: