Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b1640c

Browse files
committed
Merge from 3.4
2 parents 81a6183 + 8f278f1 commit 5b1640c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/platform.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,10 @@ class VS_FIXEDFILEINFO(Structure):
560560
return maj, min, build
561561

562562
def win32_ver(release='', version='', csd='', ptype=''):
563-
from sys import getwindowsversion
563+
try:
564+
from sys import getwindowsversion
565+
except ImportError:
566+
return release, version, csd, ptype
564567
try:
565568
from winreg import OpenKeyEx, QueryValueEx, CloseKey, HKEY_LOCAL_MACHINE
566569
except ImportError:

0 commit comments

Comments
 (0)