Skip to content

Commit 55717b4

Browse files
authored
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-812)
(cherry picked from commit 9f0aa48)
1 parent 1fc1f8d commit 55717b4

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
@@ -136,7 +136,7 @@ def reload(module):
136136
137137
"""
138138
if not module or not isinstance(module, types.ModuleType):
139-
raise TypeError("reload() argument must be module")
139+
raise TypeError("reload() argument must be a module")
140140
try:
141141
name = module.__spec__.name
142142
except AttributeError:

0 commit comments

Comments
 (0)