Skip to content

Commit 49d11e6

Browse files
committed
fix: apply suggestions
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 56d1835 commit 49d11e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def getfile(object):
844844
if getattr(object, '__file__', None):
845845
return object.__file__
846846
if getattr(object, '__spec__', None) is not None:
847-
raise TypeError(f'{object!r} is a built-in module')
847+
raise TypeError(f'{object!r} is: {object.__spec__.origin}')
848848
raise TypeError(f'cannot get source from {object!r}')
849849
if isclass(object):
850850
if hasattr(object, '__module__'):

0 commit comments

Comments
 (0)