##// END OF EJS Templates
tests: drop py2 support from `filtertraceback.py`
Matt Harbison -
r53327:31c49870 default
parent child Browse files
Show More
@@ -6,15 +6,14
6 import io
6 import io
7 import sys
7 import sys
8
8
9 if sys.version_info[0] >= 3:
9 # Prevent \r from being inserted on Windows.
10 # Prevent \r from being inserted on Windows.
10 sys.stdout = io.TextIOWrapper(
11 sys.stdout = io.TextIOWrapper(
11 sys.stdout.buffer,
12 sys.stdout.buffer,
12 sys.stdout.encoding,
13 sys.stdout.encoding,
13 sys.stdout.errors,
14 sys.stdout.errors,
14 newline="\n",
15 newline="\n",
15 line_buffering=sys.stdout.line_buffering,
16 line_buffering=sys.stdout.line_buffering,
16 )
17 )
18
17
19 state = 'none'
18 state = 'none'
20
19
General Comments 0
You need to be logged in to leave comments. Login now