Skip to content

Commit 937865a

Browse files
committed
Merge pull request bpython#614 from blueyed/fix-f2-without-source-in-cli
Fix TypeError when using F2 without some source
2 parents 69d3480 + 325d3bb commit 937865a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ def p_key(self, key):
974974
try:
975975
source = self.get_source_of_current_name()
976976
except repl.SourceNotFound as e:
977-
self.statusbar.message(_(e))
977+
self.statusbar.message(str(e))
978978
else:
979979
if config.highlight_show_source:
980980
source = format(PythonLexer().get_tokens(source),

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ def show_source(self):
16821682
try:
16831683
source = self.get_source_of_current_name()
16841684
except SourceNotFound as e:
1685-
self.status_bar.message('%s' % (e, ))
1685+
self.status_bar.message(str(e))
16861686
else:
16871687
if self.config.highlight_show_source:
16881688
source = format(PythonLexer().get_tokens(source),

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