[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove unused import, and unused class TwistedAdapter. Mark one variable as



# HG changeset patch
# User emellor@ewan
# Node ID 4507382c88e5045704ff8f96b06600d13ca667ad
# Parent  b6ee902f83f4d6f80a69e8b7947b96a39efbb8b9
Remove unused import, and unused class TwistedAdapter.  Mark one variable as
unused.

Signed-off-by: Ewan Mellor<ewan@xxxxxxxxxxxxx>

diff -r b6ee902f83f4 -r 4507382c88e5 tools/python/xen/sv/Main.py
--- a/tools/python/xen/sv/Main.py       Sat Sep 17 09:22:42 2005
+++ b/tools/python/xen/sv/Main.py       Sat Sep 17 09:29:33 2005
@@ -1,5 +1,4 @@
 
-from xen.sv.HTMLBase import HTMLBase
 from xen.sv.NodeInfo import NodeInfo
 from xen.sv.DomInfo  import DomInfo
 from xen.sv.CreateDomain import CreateDomain
@@ -33,15 +32,8 @@
             result.append( (key, self.fieldStorage.getlist( key ) ) )
         return result
                                                                                
                                                                             
-class TwistedAdapter:
-    def __init__( self, req ):
-        self.args = Args( req )
-        self.uri = req.unparsed_uri
-        self.url = req.uri
-        self.write = req.write
-
 # This is the Main class
-# It peices together all the modules
+# It pieces together all the modules
 
 class Main:
     def __init__( self ):
@@ -61,7 +53,7 @@
             self.init_modules( request )
             self.init_done = True
             
-        for moduleName, module in self.modules.iteritems():
+        for _, module in self.modules.iteritems():
             module.write_MENU( request )
             request.write( "\n" )
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.