PrettyPrint.py fix
PATCH 1/1 PrettyPrint.py fix
Function pprint() of PrettyPrint.py::SXPPrettyPrinter unnecessarily increases "i" variable in the loop (patch against -ustable [email protected])
Signed-off-by Nguyen Anh Quynh <[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