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
|
@ -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…
Reference in New Issue