vendor: upgrade Darkdetect to 0.1.1
This commit is contained in:
parent
0279702f73
commit
7788e533eb
14
syncplay/vendor/darkdetect/__init__.py
vendored
14
syncplay/vendor/darkdetect/__init__.py
vendored
@ -4,15 +4,19 @@
|
|||||||
# Distributed under the terms of the 3-clause BSD License.
|
# Distributed under the terms of the 3-clause BSD License.
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
__version__ = '0.1.0'
|
__version__ = '0.1.1'
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import platform
|
import platform
|
||||||
from distutils.version import LooseVersion as V
|
|
||||||
|
|
||||||
if sys.platform != "darwin" or V(platform.mac_ver()[0]) < V("10.14"):
|
if sys.platform != "darwin":
|
||||||
from ._dummy import *
|
from ._dummy import *
|
||||||
else:
|
else:
|
||||||
from ._detect import *
|
from distutils.version import LooseVersion as V
|
||||||
|
if V(platform.mac_ver()[0]) < V("10.14"):
|
||||||
|
from ._dummy import *
|
||||||
|
else:
|
||||||
|
from ._detect import *
|
||||||
|
del V
|
||||||
|
|
||||||
del sys, platform, V
|
del sys, platform
|
||||||
Loading…
x
Reference in New Issue
Block a user