# HG changeset patch
# User emellor@ewan
# Node ID 10d2067f6016a67374c0af1f3f3684c14f9fa8ca
# Parent 91f974f7ce97ce918988b78fb9689d02b8ba2aa3
Removed unused impotr and marked some parameters as unused.
Signed-off-by: Ewan Mellor<ewan@xxxxxxxxxxxxx>
diff -r 91f974f7ce97 -r 10d2067f6016 tools/python/xen/xend/server/SrvNode.py
--- a/tools/python/xen/xend/server/SrvNode.py Sat Sep 17 09:33:50 2005
+++ b/tools/python/xen/xend/server/SrvNode.py Sat Sep 17 09:42:49 2005
@@ -15,7 +15,6 @@
# Copyright (C) 2004, 2005 Mike Wray <mike.wray@xxxxxx>
#============================================================================
-import os
from xen.web.SrvDir import SrvDir
from xen.xend import sxp
@@ -32,15 +31,15 @@
self.add('dmesg', 'SrvDmesg')
self.add('log', 'SrvXendLog')
- def op_shutdown(self, op, req):
+ def op_shutdown(self, _1, _2):
val = self.xn.shutdown()
return val
- def op_reboot(self, op, req):
+ def op_reboot(self, _1, _2):
val = self.xn.reboot()
return val
- def op_cpu_bvt_slice_set(self, op, req):
+ def op_cpu_bvt_slice_set(self, _, req):
fn = FormFn(self.xn.cpu_bvt_slice_set,
[['ctx_allow', 'int']])
val = fn(req.args, {})
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|