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

Commit2d56c5c

Browse files
committed
Use more f-strings
1 parent248f2e2 commit2d56c5c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎bpython/config.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ def get_key_no_doublebind(command):
314314
try:
315315
load_theme(struct,path,struct.color_scheme,default_colors)
316316
exceptOSError:
317-
sys.stderr.write(f"Could not load theme '{color_scheme_name}' from{path}.\n")
317+
sys.stderr.write(
318+
f"Could not load theme '{color_scheme_name}' from{path}.\n"
319+
)
318320
sys.exit(1)
319321

320322
# expand path of history file

‎bpython/keys.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def __getitem__(self, key):
3737
returnself.map[key]
3838
else:
3939
raiseKeyError(
40-
"Configured keymap (%s)"%key
41-
+" does not exist in bpython.keys"
40+
f"Configured keymap ({key}) does not exist in bpython.keys"
4241
)
4342

4443
def__delitem__(self,key):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp