Skip to content

Commit a7609fd

Browse files
committed
Clean up
1 parent 2dfe4ff commit a7609fd

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

bpython/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
):

bpython/repl.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)