MCPcopy Create free account
hub / github.com/LabPy/lantz / commit_api

Function commit_api

lantz/utils/qt_loaders.py:80–87  ·  view source on GitHub ↗

Commit to a particular API, and trigger ImportErrors on subsequent dangerous imports

(api)

Source from the content-addressed store, hash-verified

78
79
80def commit_api(api):
81 """Commit to a particular API, and trigger ImportErrors on subsequent
82 dangerous imports"""
83
84 if api == QT_API_PYSIDE:
85 ID.forbid('PyQt4')
86 else:
87 ID.forbid('PySide')
88
89
90def loaded_api():

Callers 1

load_qtFunction · 0.85

Calls 1

forbidMethod · 0.80

Tested by

no test coverage detected