File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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__ ) + ' ' +
You can’t perform that action at this time.
0 commit comments