Skip to content

Commit 9f0aa48

Browse files
mandeepMariatta
authored andcommitted
bpo-29862: Fix grammar in importlib.reload() exception (GH-809)
1 parent 29540cd commit 9f0aa48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/importlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def reload(module):
137137
138138
"""
139139
if not module or not isinstance(module, types.ModuleType):
140-
raise TypeError("reload() argument must be module")
140+
raise TypeError("reload() argument must be a module")
141141
try:
142142
name = module.__spec__.name
143143
except AttributeError:

0 commit comments

Comments
 (0)