plugin.py: Don't make a double lookup in the plugin table to get one
Description
Remove a double lookup in the Plugin.__TABLE when getting a plugin by id.
This will speedup all invocations of this method.
The assert False is necessary in order to keep the same behavior as before (raising a KeyError whenever we run with python -O).
Changes proposed in this merge request:
- Don't make a double lookup in
Plugin.__TABLE
This merge request, when approved, will close: