示例#1
0
文件: admin.py 项目: Janno/pyhkal2
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)
示例#2
0
文件: support.py 项目: Janno/pyhkal2
 def tearDown(self):
     sys.meta_path.remove(self.mall)
     for module in self.modules:
         shopping.revoke(module)
         delattr(self, module)
示例#3
0
文件: admin.py 项目: npx/pyhkal2
def reload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content:
            shopping.revoke(module)