Skip to content

Commit da8a053

Browse files
fix python3 external communication
1 parent fd4755a commit da8a053

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ def __init__(self,
238238
if interp is None:
239239
interp = code.InteractiveInterpreter(locals=locals_)
240240
if banner is None:
241-
banner = _('Welcome to bpython! Press <%s> for help.') % config.help_key
241+
if config.help_key:
242+
banner = _('Welcome to bpython!') + ' ' + (_('Press <%s> for help.') % config.help_key)
243+
else:
244+
banner = None
242245
config.autocomplete_mode = autocomplete.SIMPLE # only one implemented currently
243246
if config.cli_suggestion_width <= 0 or config.cli_suggestion_width > 1:
244247
config.cli_suggestion_width = 1
@@ -1261,7 +1264,7 @@ def show_source(self):
12611264
self.pager(source)
12621265

12631266
def help_text(self):
1264-
return self.version_help_text() + '\n' + self.key_help_text()
1267+
return (self.version_help_text() + '\n' + self.key_help_text()).encode('utf8')
12651268

12661269
def version_help_text(self):
12671270
return (('bpython-curtsies version %s' % bpython.__version__) + ' ' +

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