Skip to content

Commit 23ce07f

Browse files
committed
Revert to use '%s' again
Should fix bpython#642 Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 2066572 commit 23ce07f

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(str(e))
977+
self.statusbar.message('%s' % (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
@@ -1702,7 +1702,7 @@ def show_source(self):
17021702
try:
17031703
source = self.get_source_of_current_name()
17041704
except SourceNotFound as e:
1705-
self.status_bar.message(str(e))
1705+
self.status_bar.message('%s' % (e, ))
17061706
else:
17071707
if self.config.highlight_show_source:
17081708
source = format(PythonLexer().get_tokens(source),

0 commit comments

Comments
 (0)