bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811)

(cherry picked from commit 9f0aa4843f)
This commit is contained in:
Mariatta 2017-03-25 03:41:59 -07:00 committed by GitHub
parent 5dafaece67
commit 8b82236952

View file

@ -136,7 +136,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: