Skip to contentSkip to conversation

PrettyPrint.py fix

PATCH New aq 1 participant 1 message Jun 3, 2005

lore
Share & tools
lore

aq

author
#0 lore raw

PATCH 1/1 PrettyPrint.py fix

Function pprint() of PrettyPrint.py::SXPPrettyPrinter unnecessarily increases "i" variable in the loop (patch against -ustable [email protected])

$ diffstat prettyprint.patch 
 PrettyPrint.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

===== tools/python/xen/xend/PrettyPrint.py 1.6 vs edited =====

tools/python/xen/xend/PrettyPrint.py +2 -2
@@ -261,9 +261,9 @@
             self.write('(')
             i = 0
             for x in l:
-                if(i): self.addbreak()
+                if (i): self.addbreak()
                 self.pprint(x)
-                i += 1
+                i = 1
             self.addbreak(width=0, indent=0)
             self.write(')')
             self.end()

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel