diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-03-25 10:42:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 10:42:38 (GMT) |
commit | 55717b4b487a9ccc119ca501fad71937fa01d1f6 (patch) | |
tree | 53e5a83a969bd0f9a67fdec6ea089057da4627ae /Lib/importlib | |
parent | 1fc1f8d7f737f80a1ee5ea37b9781c0a790102b2 (diff) | |
download | cpython-55717b4b487a9ccc119ca501fad71937fa01d1f6.zip cpython-55717b4b487a9ccc119ca501fad71937fa01d1f6.tar.gz cpython-55717b4b487a9ccc119ca501fad71937fa01d1f6.tar.bz2 |
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-812)
(cherry picked from commit 9f0aa4843f8c26937d5817f27cac4aae9c0a034f)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index b6a9f82..8b11d22 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: |