File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,10 @@ def __init__(self,
238
238
if interp is None :
239
239
interp = code .InteractiveInterpreter (locals = locals_ )
240
240
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
242
245
config .autocomplete_mode = autocomplete .SIMPLE # only one implemented currently
243
246
if config .cli_suggestion_width <= 0 or config .cli_suggestion_width > 1 :
244
247
config .cli_suggestion_width = 1
@@ -1261,7 +1264,7 @@ def show_source(self):
1261
1264
self .pager (source )
1262
1265
1263
1266
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' )
1265
1268
1266
1269
def version_help_text (self ):
1267
1270
return (('bpython-curtsies version %s' % bpython .__version__ ) + ' ' +
You can’t perform that action at this time.
0 commit comments