mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)
(cherry picked from commit 9f0aa4843f
)
This commit is contained in:
parent
5dafaece67
commit
8b82236952
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue