summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index e55edca..806f526 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -406,6 +406,7 @@ def findsource(object):
if pat.match(lines[lnum]): break
lnum = lnum - 1
return lines, lnum
+ raise IOError, 'could not find code object'
def getcomments(object):
"""Get lines of comments immediately preceding an object's source code."""