From 8a50711eb2e43d2fe7cd7fc28144ea4a1c0c826e Mon Sep 17 00:00:00 2001 From: dpizetta Date: Wed, 24 Apr 2019 11:08:53 -0300 Subject: [PATCH] Changing future warning to pending deprecation warning - fixes #125 --- qdarkstyle/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qdarkstyle/__init__.py b/qdarkstyle/__init__.py index fc1779f..37b834c 100644 --- a/qdarkstyle/__init__.py +++ b/qdarkstyle/__init__.py @@ -55,7 +55,7 @@ import copy if sys.version_info >= (3, 4): import importlib -__version__ = "2.6.5" +__version__ = "2.6.6" QT_BINDINGS = ['PyQt4', 'PyQt5', 'PySide', 'PySide2'] @@ -211,7 +211,7 @@ def load_stylesheet(pyside=True): warnings.warn( "load_stylesheet() will not receive pyside parameter in version 3. " "Set QtPy environment variable to specify the Qt binding insteady.", - FutureWarning + PendingDeprecationWarning ) # Smart import of the rc file @@ -222,7 +222,7 @@ def load_stylesheet(pyside=True): # Detect the PySide version available try: import PySide - except ImportError: # Compatible with py27 + except ImportError: # Compatible with py27 import PySide2 pyside_ver = 2 else: