We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c5017 commit c7f22dcCopy full SHA for c7f22dc
bpython/curtsiesfrontend/repl.py
@@ -862,6 +862,10 @@ def send_session_to_external_editor(self, filename=None):
862
else:
863
current_line = ''
864
from_editor = [line for line in lines if line[:3] != '###']
865
+ if all(not line.strip() for line in from_editor):
866
+ self.status_bar.message(
867
+ _('Session not reevaluated because saved file was blank'))
868
+ return
869
870
source = preprocess('\n'.join(from_editor), self.interp.compile)
871
lines = source.split('\n')
0 commit comments