Exemplo n.º 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)
Exemplo n.º 2
0
 def tearDown(self):
     sys.meta_path.remove(self.mall)
     for module in self.modules:
         shopping.revoke(module)
         delattr(self, module)
Exemplo n.º 3
0
Arquivo: admin.py Projeto: npx/pyhkal2
def reload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content:
            shopping.revoke(module)