Commit 83327073 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Add a __contains__ method for checking whether a plugin has been loaded.

parent 3bedbf46
......@@ -257,3 +257,6 @@ class Plugins(object):
""" Iter over plugin instances' names """
for name in self.plugins:
yield name
def __contains__(self, key):
return key in self.plugins
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment