Commit 154385a0 authored by Denis Bilenko's avatar Denis Bilenko

use sys.platform rather than platform.system to detect Windows

- the latter can even call 'uname' which is not necessary in this case.
parent 5e51ec25
......@@ -54,9 +54,8 @@ import errno
import time
import random
import re
import platform
is_windows = platform.system() == 'Windows'
is_windows = sys.platform == 'win32'
if is_windows:
# no such thing as WSAEPERM or error code 10001 according to winsock.h or MSDN
......
Markdown is supported
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