Mercurial > public > mercurial-scm > hg
changeset 52430:31c4987034b9
tests: drop py2 support from `filtertraceback.py`
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 02 Dec 2024 12:52:39 -0500 |
parents | a4889a91713d |
children | 2c8c46c3c401 |
files | tests/filtertraceback.py |
diffstat | 1 files changed, 8 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/filtertraceback.py Sat Nov 30 17:43:06 2024 -0500 +++ b/tests/filtertraceback.py Mon Dec 02 12:52:39 2024 -0500 @@ -6,15 +6,14 @@ import io import sys -if sys.version_info[0] >= 3: - # Prevent \r from being inserted on Windows. - sys.stdout = io.TextIOWrapper( - sys.stdout.buffer, - sys.stdout.encoding, - sys.stdout.errors, - newline="\n", - line_buffering=sys.stdout.line_buffering, - ) +# Prevent \r from being inserted on Windows. +sys.stdout = io.TextIOWrapper( + sys.stdout.buffer, + sys.stdout.encoding, + sys.stdout.errors, + newline="\n", + line_buffering=sys.stdout.line_buffering, +) state = 'none'