Changing future warning to pending deprecation warning - fixes #125

This commit is contained in:
dpizetta
2019-04-24 11:08:53 -03:00
parent ce94ce3906
commit 8a50711eb2
+3 -3
View File
@@ -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: