bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
This commit is contained in:
parent
29540cdf6c
commit
9f0aa4843f
|
@ -137,7 +137,7 @@ def reload(module):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not module or not isinstance(module, types.ModuleType):
|
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:
|
try:
|
||||||
name = module.__spec__.name
|
name = module.__spec__.name
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in New Issue