summaryrefslogtreecommitdiffstats
path: root/modules/service.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-24 15:22:16 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-24 15:22:16 -0400
commit9c72cbd826528bb64267ba2184ae16099343c7ab (patch)
treeef33f4ac253ebd1c9c1deb8618d6ac6a405b1c4d /modules/service.py
parentbcbdab56d02a09ecda8a70acd6e5990073dd6b3e (diff)
downloadfunc-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/service.py')
-rwxr-xr-xmodules/service.py5
1 files changed, 2 insertions, 3 deletions
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")