summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMandeep Bhutani <mandeep@users.noreply.github.com>2017-03-25 04:51:21 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-03-25 04:51:21 (GMT)
commit9f0aa4843f8c26937d5817f27cac4aae9c0a034f (patch)
tree7c3e73c63613c8b7c669b8c70e5d55947df84da4
parent29540cdf6c66df9f806375a95078c0c63192ef78 (diff)
downloadcpython-9f0aa4843f8c26937d5817f27cac4aae9c0a034f.zip
cpython-9f0aa4843f8c26937d5817f27cac4aae9c0a034f.tar.gz
cpython-9f0aa4843f8c26937d5817f27cac4aae9c0a034f.tar.bz2
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
-rw-r--r--Lib/importlib/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py
index f87e20e..86febff 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: