From d6fff83741475a39c78a74c31916eb9428590d4f 2018-10-29 15:16:13 From: Martin Bergtholdt Date: 2018-10-29 15:16:13 Subject: [PATCH] fix for PySide2 cannot be activated since it is directly deactivated again in the else part --- diff --git a/IPython/external/qt_loaders.py b/IPython/external/qt_loaders.py index 2e822e2..ef6b898 100644 --- a/IPython/external/qt_loaders.py +++ b/IPython/external/qt_loaders.py @@ -68,7 +68,7 @@ def commit_api(api): ID.forbid('PySide') ID.forbid('PyQt4') ID.forbid('PyQt5') - if api == QT_API_PYSIDE: + elif api == QT_API_PYSIDE: ID.forbid('PySide2') ID.forbid('PyQt4') ID.forbid('PyQt5')