Example #1
0
def unload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content.split():
            shopping.revoke(module)
        event.reply("Unloading %s finished." % event.content)
Example #2
0
 def tearDown(self):
     sys.meta_path.remove(self.mall)
     for module in self.modules:
         shopping.revoke(module)
         delattr(self, module)
Example #3
0
File: admin.py Project: npx/pyhkal2
def reload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content:
            shopping.revoke(module)