Skip to content

Commit 01accd7

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Remove commented ANSI escape and whitespace filtering logic
1 parent de78e04 commit 01accd7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/test_base.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,9 @@ def test_lambda_in_REPL(): # noqa: N802
133133
after = buffer.getvalue()
134134
print(after) # noqa: T201
135135
print('------------') # noqa: T201
136-
after = re.compile(r'(?:\x1B[@-_]|\x9B)[0-?]*[ -/]*[@-~]').sub('', after.lstrip(before))
137-
after = ''.join(ch for ch in after if ch >= ' ' or ch in '\n\r\t')
138-
print(after) # noqa: T201
139-
print('------------') # noqa: T201
140-
after = after.lstrip(before)
136+
#after = re.compile(r'(?:\x1B[@-_]|\x9B)[0-?]*[ -/]*[@-~]').sub('', after.lstrip(before))
137+
#after = ''.join(ch for ch in after if ch >= ' ' or ch in '\n\r\t')
138+
after = after[len(before):]
141139
print(after) # noqa: T201
142140
print('------------') # noqa: T201
143141
after = after.splitlines()

0 commit comments

Comments
 (0)