* [PATCH] Fix 'xm list -l'
@ 2005-09-26 22:01 Dan Smith
2005-09-27 14:03 ` Ewan Mellor
0 siblings, 1 reply; 2+ messages in thread
From: Dan Smith @ 2005-09-26 22:01 UTC (permalink / raw)
To: Xen Developers
[-- Attachment #1: Type: text/plain, Size: 282 bytes --]
This patch cleans up some of the argument usage in PrettyPrint.py to
avoid a stack trace when doing an 'xm list -l'. Most of the
prettyprint() methods were called with 1 argument, but the functions
required 2 (one of which was unused).
Signed-off-by: Dan Smith <danms@us.ibm.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix_pp.patch --]
[-- Type: text/x-patch, Size: 1862 bytes --]
diff -r 5ea81e640509 tools/python/xen/xend/PrettyPrint.py
--- a/tools/python/xen/xend/PrettyPrint.py Sun Sep 25 10:47:22 2005
+++ b/tools/python/xen/xend/PrettyPrint.py Mon Sep 26 11:35:27 2005
@@ -52,7 +52,7 @@
def output(self, out):
out.write(self.value)
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
line.output(self)
def show(self, out):
@@ -63,7 +63,7 @@
def output(self, out):
out.write(' ' * self.width)
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
line.output(self)
def show(self, out):
@@ -80,7 +80,7 @@
def output(self, out):
out.write(' ' * self.width)
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
if line.breaks(self.space):
self.active = 1
line.newline(self.indent)
@@ -97,7 +97,7 @@
block.newline()
block.addtoline(self)
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
line.newline(0)
line.output(self)
@@ -127,7 +127,7 @@
lastbreak.space = (width - lastwidth)
self.width = width
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
for x in self.content:
x.prettyprint(line)
@@ -168,7 +168,7 @@
def addtoline(self, x):
self.lines[-1].write(x)
- def prettyprint(self, line, _):
+ def prettyprint(self, line):
self.indent = line.used
line.block = self
if not line.fits(self.width):
@@ -252,7 +252,7 @@
self.block = self.block.parent
def prettyprint(self, out=sys.stdout):
- self.top.prettyprint(Line(out, self.width), self.width)
+ self.top.prettyprint(Line(out, self.width))
class SXPPrettyPrinter(PrettyPrinter):
"""An SXP prettyprinter.
[-- Attachment #3: Type: text/plain, Size: 87 bytes --]
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@us.ibm.com
[-- Attachment #4: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix 'xm list -l'
2005-09-26 22:01 [PATCH] Fix 'xm list -l' Dan Smith
@ 2005-09-27 14:03 ` Ewan Mellor
0 siblings, 0 replies; 2+ messages in thread
From: Ewan Mellor @ 2005-09-27 14:03 UTC (permalink / raw)
To: Xen Developers
On Mon, Sep 26, 2005 at 03:01:12PM -0700, Dan Smith wrote:
> This patch cleans up some of the argument usage in PrettyPrint.py to
> avoid a stack trace when doing an 'xm list -l'. Most of the
> prettyprint() methods were called with 1 argument, but the functions
> required 2 (one of which was unused).
Applied. Thank you!
Ewan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-27 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 22:01 [PATCH] Fix 'xm list -l' Dan Smith
2005-09-27 14:03 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.