1
0
Fork 0

Basic framework for simultaneous download of multiple formats (#1036)

Authored by: nao20010128nao
This commit is contained in:
The Hatsune Daishi 2021-09-22 23:12:04 +09:00 committed by GitHub
commit bd50a52b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 224 additions and 7 deletions

View file

@ -6373,3 +6373,11 @@ def traverse_dict(dictn, keys, casesense=True):
def variadic(x, allowed_types=(str, bytes)):
return x if isinstance(x, collections.abc.Iterable) and not isinstance(x, allowed_types) else (x,)
def get_windows_version():
''' Get Windows version. None if it's not running on Windows '''
if compat_os_name == 'nt':
return version_tuple(platform.win32_ver()[1])
else:
return None