Show More
@@ -3,6 +3,7 b'' | |||
|
3 | 3 | """dummy SMTP server for use in tests""" |
|
4 | 4 | |
|
5 | 5 | |
|
6 | import io | |
|
6 | 7 | import optparse |
|
7 | 8 | import os |
|
8 | 9 | import socket |
@@ -16,6 +17,13 b' from mercurial import (' | |||
|
16 | 17 | ui as uimod, |
|
17 | 18 | ) |
|
18 | 19 | |
|
20 | if pycompat.iswindows: | |
|
21 | sys.stdout = io.TextIOWrapper( | |
|
22 | sys.stdout.buffer, | |
|
23 | sys.stdout.encoding, | |
|
24 | sys.stdout.errors, | |
|
25 | newline="\n", | |
|
26 | ) | |
|
19 | 27 | |
|
20 | 28 | if os.environ.get('HGIPV6', '0') == '1': |
|
21 | 29 | family = socket.AF_INET6 |
General Comments 0
You need to be logged in to leave comments.
Login now