We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e51b51 commit 28cb9f2Copy full SHA for 28cb9f2
bpython/repl.py
@@ -596,8 +596,8 @@ def get_source_of_current_name(self):
596
raise ValueError("Nothing to get source of")
597
if inspection.is_eval_safe_name(line):
598
obj = self.get_object(line)
599
- try:
600
- inspect.getsource(obj)
+ try:
+ return inspect.getsource(obj)
601
except TypeError, e:
602
msg = e.message
603
if "built-in" in msg:
0 commit comments