From: Mandeep Bhutani Date: Sat, 25 Mar 2017 04:51:21 +0000 (-0500) Subject: bpo-29862: Fix grammar in importlib.reload() exception (GH-809) X-Git-Tag: v3.7.0a1~1077 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f0aa4843f8c26937d5817f27cac4aae9c0a034f;p=thirdparty%2FPython%2Fcpython.git bpo-29862: Fix grammar in importlib.reload() exception (GH-809) --- diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index f87e20e4045d..86febffb6d25 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -137,7 +137,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: