mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
This commit is contained in:
parent
29540cdf6c
commit
9f0aa4843f
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue