File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 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:
224224
225225 try :
226226 default_command = default_keys_to_commands [requested_key ]
227-
228227 if default_commands_to_keys [default_command ] == config .get (
229228 "keyboard" , default_command
230229 ):
Original file line number Diff line number Diff line change @@ -859,8 +859,8 @@ def pastebin(self, s=None):
859859 _ ("Pastebin buffer? (y/N) " )
860860 ):
861861 self .interact .notify (_ ("Pastebin aborted." ))
862- return
863- return self .do_pastebin (s )
862+ else :
863+ return self .do_pastebin (s )
864864
865865 def do_pastebin (self , s ):
866866 """Actually perform the upload."""
@@ -1119,10 +1119,7 @@ def open_in_external_editor(self, filename):
11191119 def edit_config (self ):
11201120 if not self .config .config_path .is_file ():
11211121 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)" )
11261123 ):
11271124 try :
11281125 default_config = pkgutil .get_data (
@@ -1148,8 +1145,7 @@ def edit_config(self):
11481145 if self .open_in_external_editor (self .config .config_path ):
11491146 self .interact .notify (
11501147 _ (
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."
11531149 )
11541150 )
11551151 except OSError as e :
You can’t perform that action at this time.
0 commit comments