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)
def tearDown(self): sys.meta_path.remove(self.mall) for module in self.modules: shopping.revoke(module) delattr(self, module)
def reload_module(event): admin = yield isadmin(event.source) if admin: for module in event.content: shopping.revoke(module)