Commit 5a26554d authored by Matias Guijarro's avatar Matias Guijarro
Browse files

ptpython output capture: suppress Out prompt

parent 4f050f8a
......@@ -8,6 +8,7 @@
"""Bliss REPL (Read Eval Print Loop)"""
import asyncio
import contextlib
import re
import os
import sys
import types
......@@ -277,8 +278,10 @@ class PromptToolkitOutputWrapper(DummyOutput):
return WrappedStdout(self._output_buffer)
def acknowledge_output(self):
txt = "".join(self._output_buffer)
txt = re.sub("^(\s+Out\s\[\d+\]:\s+)", "", txt, count=1, flags=re.MULTILINE)
def __getitem__(self, item_no):
if item_no > 0:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment