[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Fix xm network-list/block-list/vtpm-list
> diff -r 411a3c01bb40 tools/python/xen/xm/main.py > --- a/tools/python/xen/xm/main.py Tue Jun 20 18:51:46 2006 +0100 > +++ b/tools/python/xen/xm/main.py Thu Jun 22 15:50:35 2006 +0900 > @@ -276,7 +276,13 @@ for command in all_commands: > #################################################################### > > def arg_check(args, name, lo, hi = -1): > - n = len(args) > + # remove split(--) from args > + new_args = [] > + for x in args: > + if x != '--': > + new_args.append(x) > + > + n = len(new_args) You don't mean "n = len([i for i in args if i != '--'])"? Bastian -- Extreme feminine beauty is always disturbing. -- Spock, "The Cloud Minders", stardate 5818.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |