Skip to content

Commit af2d609

Browse files
authored
Update Lib/inspect.py
1 parent e369512 commit af2d609

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/inspect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ def _getcode(object):
932932
object = object.f_code
933933
if iscode(object):
934934
return object
935+
return None
935936

936937
def getmodulename(path):
937938
"""Return the module name for a given file, or None."""

0 commit comments

Comments
 (0)