prefer sys.platform over os.name when checking for windows OS
#2796
+13
−10
sys.platform over os.name when checking for windows OS
#2796