darkdetect: update vendor copy to 0.5.2
This commit is contained in:
parent
8e5238da6f
commit
2070d99f01
4
syncplay/vendor/darkdetect/__init__.py
vendored
4
syncplay/vendor/darkdetect/__init__.py
vendored
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user