Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda8a053

Browse files
fix python3 external communication
1 parentfd4755a commitda8a053

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
ifinterpisNone:
239239
interp=code.InteractiveInterpreter(locals=locals_)
240240
ifbannerisNone:
241-
banner=_('Welcome to bpython! Press <%s> for help.')%config.help_key
241+
ifconfig.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
ifconfig.cli_suggestion_width<=0orconfig.cli_suggestion_width>1:
244247
config.cli_suggestion_width=1
@@ -1261,7 +1264,7 @@ def show_source(self):
12611264
self.pager(source)
12621265

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp