File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ def get_key_no_doublebind(command: str) -> str:
224
224
225
225
try :
226
226
default_command = default_keys_to_commands [requested_key ]
227
-
228
227
if default_commands_to_keys [default_command ] == config .get (
229
228
"keyboard" , default_command
230
229
):
Original file line number Diff line number Diff line change @@ -859,8 +859,8 @@ def pastebin(self, s=None):
859
859
_ ("Pastebin buffer? (y/N) " )
860
860
):
861
861
self .interact .notify (_ ("Pastebin aborted." ))
862
- return
863
- return self .do_pastebin (s )
862
+ else :
863
+ return self .do_pastebin (s )
864
864
865
865
def do_pastebin (self , s ):
866
866
"""Actually perform the upload."""
@@ -1119,10 +1119,7 @@ def open_in_external_editor(self, filename):
1119
1119
def edit_config (self ):
1120
1120
if not self .config .config_path .is_file ():
1121
1121
if self .interact .confirm (
1122
- _ (
1123
- "Config file does not exist - create "
1124
- "new from default? (y/N)"
1125
- )
1122
+ _ ("Config file does not exist - create new from default? (y/N)" )
1126
1123
):
1127
1124
try :
1128
1125
default_config = pkgutil .get_data (
@@ -1148,8 +1145,7 @@ def edit_config(self):
1148
1145
if self .open_in_external_editor (self .config .config_path ):
1149
1146
self .interact .notify (
1150
1147
_ (
1151
- "bpython config file edited. Restart "
1152
- "bpython for changes to take effect."
1148
+ "bpython config file edited. Restart bpython for changes to take effect."
1153
1149
)
1154
1150
)
1155
1151
except OSError as e :
You can’t perform that action at this time.
0 commit comments