Skip to content

Commit 28cb9f2

Browse files
committed
Add missing return statement. Fixes #403.
1 parent 7e51b51 commit 28cb9f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ def get_source_of_current_name(self):
596596
raise ValueError("Nothing to get source of")
597597
if inspection.is_eval_safe_name(line):
598598
obj = self.get_object(line)
599-
try:
600-
inspect.getsource(obj)
599+
try:
600+
return inspect.getsource(obj)
601601
except TypeError, e:
602602
msg = e.message
603603
if "built-in" in msg:

0 commit comments

Comments
 (0)