From 7788e533eb486106e301f66a36e6fc7e24bd1307 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Wed, 22 May 2019 09:56:43 +0200 Subject: [PATCH] vendor: upgrade Darkdetect to 0.1.1 --- syncplay/vendor/darkdetect/__init__.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/syncplay/vendor/darkdetect/__init__.py b/syncplay/vendor/darkdetect/__init__.py index 0537e58..4cce200 100755 --- a/syncplay/vendor/darkdetect/__init__.py +++ b/syncplay/vendor/darkdetect/__init__.py @@ -4,15 +4,19 @@ # Distributed under the terms of the 3-clause BSD License. #----------------------------------------------------------------------------- -__version__ = '0.1.0' +__version__ = '0.1.1' import sys 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 * 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 \ No newline at end of file +del sys, platform \ No newline at end of file