def commit_api(api):
 if (api == QT_API_PYSIDE2):
  ID.forbid('PySide')
  ID.forbid('PyQt4')
  ID.forbid('PyQt5')
 if (api == QT_API_PYSIDE):
  ID.forbid('PySide2')
  ID.forbid('PyQt4')
  ID.forbid('PyQt5')
 elif (api == QT_API_PYQT5):
  ID.forbid('PySide2')
  ID.forbid('PySide')
  ID.forbid('PyQt4')
 else:
  ID.forbid('PyQt5')
  ID.forbid('PySide2')
  ID.forbid('PySide')

def commit_api ( api ) : if ( api == QT_API_PYSIDE2 ) : ID . forbid ( 'PySide' ) ID . forbid ( 'PyQt4' ) ID . forbid ( 'PyQt5' ) if ( api == QT_API_PYSIDE ) : ID . forbid ( 'PySide2' ) ID . forbid ( 'PyQt4' ) ID . forbid ( 'PyQt5' ) elif ( api == QT_API_PYQT5 ) : ID . forbid ( 'PySide2' ) ID . forbid ( 'PySide' ) ID . forbid ( 'PyQt4' ) else : ID . forbid ( 'PyQt5' ) ID . forbid ( 'PySide2' ) ID . forbid ( 'PySide' )
commit to a particular api .