debuggers.hg
changeset 6946:4507382c88e5
Remove unused import, and unused class TwistedAdapter. Mark one variable as
unused.
Signed-off-by: Ewan Mellor<ewan@xensource.com>
unused.
Signed-off-by: Ewan Mellor<ewan@xensource.com>
author | emellor@ewan |
---|---|
date | Sat Sep 17 10:29:33 2005 +0100 (2005-09-17) |
parents | b6ee902f83f4 |
children | 91f974f7ce97 |
files | tools/python/xen/sv/Main.py |
line diff
1.1 --- a/tools/python/xen/sv/Main.py Sat Sep 17 10:22:42 2005 +0100 1.2 +++ b/tools/python/xen/sv/Main.py Sat Sep 17 10:29:33 2005 +0100 1.3 @@ -1,5 +1,4 @@ 1.4 1.5 -from xen.sv.HTMLBase import HTMLBase 1.6 from xen.sv.NodeInfo import NodeInfo 1.7 from xen.sv.DomInfo import DomInfo 1.8 from xen.sv.CreateDomain import CreateDomain 1.9 @@ -33,15 +32,8 @@ class Args: 1.10 result.append( (key, self.fieldStorage.getlist( key ) ) ) 1.11 return result 1.12 1.13 -class TwistedAdapter: 1.14 - def __init__( self, req ): 1.15 - self.args = Args( req ) 1.16 - self.uri = req.unparsed_uri 1.17 - self.url = req.uri 1.18 - self.write = req.write 1.19 - 1.20 # This is the Main class 1.21 -# It peices together all the modules 1.22 +# It pieces together all the modules 1.23 1.24 class Main: 1.25 def __init__( self ): 1.26 @@ -61,7 +53,7 @@ class Main: 1.27 self.init_modules( request ) 1.28 self.init_done = True 1.29 1.30 - for moduleName, module in self.modules.iteritems(): 1.31 + for _, module in self.modules.iteritems(): 1.32 module.write_MENU( request ) 1.33 request.write( "\n" ) 1.34