From 53c6542aa0716a2f0a54f6ce803e9d572be1347d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 4 Oct 2003 13:24:51 +0000 Subject: [PATCH] Added docstrings and removed an unused import. --- src/OwnerCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OwnerCommands.py b/src/OwnerCommands.py index e45be14d1..016ceb8b3 100644 --- a/src/OwnerCommands.py +++ b/src/OwnerCommands.py @@ -36,7 +36,6 @@ their caller to have the 'owner' capability. This plugin is loaded by default. from fix import * -import os import gc import imp import sys @@ -54,12 +53,14 @@ import privmsgs import callbacks def loadPluginModule(name): + """Loads (and returns) the module for the plugin with the given name.""" moduleInfo = imp.find_module(name, conf.pluginDirs) module = imp.load_module(name, *moduleInfo) linecache.checkcache() return module def loadPluginClass(irc, module): + """Loads the plugin Class from the given module into the given irc.""" callback = module.Class() irc.addCallback(callback) if hasattr(callback, 'configure'):