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
parent c12977bdc4
commit bd50a52b0d
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