Thanks to visit codestin.com Credit goes to github.com
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 e789ea1 commit 8a11f5dCopy full SHA for 8a11f5d
1 file changed
Lib/inspect.py
@@ -406,6 +406,7 @@ def findsource(object):
406
if pat.match(lines[lnum]): break
407
lnum = lnum - 1
408
return lines, lnum
409
+ raise IOError, 'could not find code object'
410
411
def getcomments(object):
412
"""Get lines of comments immediately preceding an object's source code."""
0 commit comments