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 012ea90 commit bdc846cCopy full SHA for bdc846c
bpython/curtsiesfrontend/repl.py
@@ -1026,7 +1026,7 @@ def send_session_to_external_editor(self, filename=None):
1026
current_line = lines[-1][4:]
1027
else:
1028
current_line = ""
1029
- from_editor = [line for line in lines if line[:6] != "# OUT:"]
+ from_editor = [line for line in lines if line[:6] != "# OUT:" and line[:3] != "###"]
1030
if all(not line.strip() for line in from_editor):
1031
self.status_bar.message(
1032
_("Session not reevaluated because saved file was blank")
bpython/repl.py
@@ -835,7 +835,7 @@ def process():
835
yield line
836
elif line.rstrip():
837
yield "# OUT: %s" % line
838
- yield "###: %s" % self.current_line
+ yield "### %s" % self.current_line
839
840
return "\n".join(process())
841
0 commit comments