Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a name to the EventManagerPlugin (#571)
This tiny PR adds a name to the `EventManagerPlugin`, to prevent a WARNING being logged on computing the `repr` of the plugin. On main: ```python Python 3.11.9 (main, Apr 4 2024, 05:29:26) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> logging.basicConfig() >>> from envisage.plugins.event_manager.api import EventManagerPlugin >>> plugin = EventManagerPlugin() >>> plugin WARNING:envisage.plugin:plugin <envisage.plugins.event_manager.plugin.EventManagerPlugin object at 0x100d8a160> has no name - using <Event Manager Plugin> EventManagerPlugin(id='envisage.event_manager', name='Event Manager Plugin') ``` On this branch: ```python Python 3.11.9 (main, Apr 4 2024, 05:29:26) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> logging.basicConfig() >>> from envisage.plugins.event_manager.api import EventManagerPlugin >>> plugin = EventManagerPlugin() >>> plugin EventManagerPlugin(id='envisage.event_manager', name='Event Manager') ```
- Loading branch information