Skip to content

Commit 7c274fe

Browse files
committed
Fix indentation error.
Was introduced in e18e437.
1 parent 6d31d46 commit 7c274fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bpython/repl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,15 +594,14 @@ def get_source_of_current_name(self):
594594
current name in the current input line. Throw `SourceNotFound` if the
595595
source cannot be found."""
596596
obj = self.current_func
597-
msg = "Unexpected error retrieving source code for %s" % (obj,)
598597
try:
599598
if obj is None:
600599
line = self.current_line
601600
if not line.strip():
602601
raise SourceNotFound("Nothing to get source of")
603602
if inspection.is_eval_safe_name(line):
604603
obj = self.get_object(line)
605-
return inspect.getsource(obj)
604+
return inspect.getsource(obj)
606605
except (AttributeError, NameError), e:
607606
msg = "Cannot get source: " + str(e)
608607
except IOError, e:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy