Fix bug in commit_api which caused PySide2 binding to be forbidden even if the loaded API was PySide2
@@ -74,7 +74,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')
