darkdetect: update vendor copy to 0.5.2

This commit is contained in:
Alberto Sottile 2021-11-12 23:10:21 +01:00
parent 8e5238da6f
commit 2070d99f01

View File

@ -4,7 +4,7 @@
# Distributed under the terms of the 3-clause BSD License. # Distributed under the terms of the 3-clause BSD License.
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
__version__ = '0.5.1' __version__ = '0.5.2'
import sys import sys
import platform import platform
@ -19,7 +19,7 @@ if sys.platform == "darwin":
elif sys.platform == "win32" and int(platform.release()) >= 10: elif sys.platform == "win32" and int(platform.release()) >= 10:
# Checks if running Windows 10 version 10.0.14393 (Anniversary Update) OR HIGHER. The getwindowsversion method returns a tuple. # Checks if running Windows 10 version 10.0.14393 (Anniversary Update) OR HIGHER. The getwindowsversion method returns a tuple.
# The third item is the build number that we can use to check if the user has a new enough version of Windows. # The third item is the build number that we can use to check if the user has a new enough version of Windows.
winver = int(sys.getwindowsversion()[2]) winver = int(platform.version().split('.')[2])
if winver >= 14393: if winver >= 14393:
from ._windows_detect import * from ._windows_detect import *
else: else: