We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bdc58 commit ccd79d6Copy full SHA for ccd79d6
Lib/inspect.py
@@ -821,7 +821,7 @@ def getfile(object):
821
return object.__file__
822
if getattr(object, '__spec__', None) is not None:
823
raise TypeError(f'{object!r} is a built-in module')
824
- raise TypeError(f'Cannot get source from {object!r}')
+ raise TypeError(f'cannot get source from {object!r}')
825
if isclass(object):
826
if hasattr(object, '__module__'):
827
module = sys.modules.get(object.__module__)
0 commit comments