diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-24 15:22:16 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-24 15:22:16 -0400 |
commit | 9c72cbd826528bb64267ba2184ae16099343c7ab (patch) | |
tree | ef33f4ac253ebd1c9c1deb8618d6ac6a405b1c4d /modules | |
parent | bcbdab56d02a09ecda8a70acd6e5990073dd6b3e (diff) | |
download | func-9c72cbd826528bb64267ba2184ae16099343c7ab.tar.gz func-9c72cbd826528bb64267ba2184ae16099343c7ab.tar.xz func-9c72cbd826528bb64267ba2184ae16099343c7ab.zip |
pyflakes cleanups
mostly just removing unused modules
change "from codes import *" to "import codes" in a couple
places and updated accordingly
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/func_module.py | 8 | ||||
-rwxr-xr-x | modules/hardware.py | 1 | ||||
-rwxr-xr-x | modules/process.py | 1 | ||||
-rwxr-xr-x | modules/service.py | 5 | ||||
-rwxr-xr-x | modules/smart.py | 1 | ||||
-rwxr-xr-x | modules/test.py | 1 |
6 files changed, 4 insertions, 13 deletions
diff --git a/modules/func_module.py b/modules/func_module.py index 7019bc5..a3a8550 100755 --- a/modules/func_module.py +++ b/modules/func_module.py @@ -12,18 +12,14 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## -from codes import * from server import config_data from server import logger -import os -import threading -import time -import traceback - class FuncModule(object): + + # the version is meant to version = "0.0.0" api_version = "0.0.0" description = "No Description provided" diff --git a/modules/hardware.py b/modules/hardware.py index 2c41b9f..7c6deb4 100755 --- a/modules/hardware.py +++ b/modules/hardware.py @@ -23,7 +23,6 @@ sys.path.append("/usr/share/smolt/client") import smolt # our modules -from codes import * from modules import func_module # ================================= diff --git a/modules/process.py b/modules/process.py index 3e40fe1..1accbf5 100755 --- a/modules/process.py +++ b/modules/process.py @@ -18,7 +18,6 @@ import sub_process # our modules -from codes import * from modules import func_module # ================================= diff --git a/modules/service.py b/modules/service.py index 524cd7b..433d70b 100755 --- a/modules/service.py +++ b/modules/service.py @@ -14,8 +14,7 @@ ## ## - -from codes import * +import codes from modules import func_module import sub_process @@ -39,7 +38,7 @@ class Service(func_module.FuncModule): if os.path.exists(filename): return sub_process.call(["/sbin/service", service_name, command]) else: - raise FuncException("Service not installed: %s" % service_name) + raise codes.FuncException("Service not installed: %s" % service_name) def start(self, service_name): return self.__command(service_name, "start") diff --git a/modules/smart.py b/modules/smart.py index 4ed8335..0a7be47 100755 --- a/modules/smart.py +++ b/modules/smart.py @@ -19,7 +19,6 @@ import sub_process # our modules -from codes import * from modules import func_module # ================================= diff --git a/modules/test.py b/modules/test.py index ea22007..55265a3 100755 --- a/modules/test.py +++ b/modules/test.py @@ -1,6 +1,5 @@ #!/usr/bin/python -from codes import * from modules import func_module class Test(func_module.FuncModule): |