Merge from 3.4
This commit is contained in:
commit
5b1640cd2b
|
@ -560,7 +560,10 @@ def _get_real_winver(maj, min, build):
|
|||
return maj, min, build
|
||||
|
||||
def win32_ver(release='', version='', csd='', ptype=''):
|
||||
try:
|
||||
from sys import getwindowsversion
|
||||
except ImportError:
|
||||
return release, version, csd, ptype
|
||||
try:
|
||||
from winreg import OpenKeyEx, QueryValueEx, CloseKey, HKEY_LOCAL_MACHINE
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue