remove tabs from xm/main.py
PATCH 1/1 remove tabs from xm/main.py
hello,
while investigating xm/main.py, i found that it is mixed with tabs and whitespaces. that is annoying and may get us misleaded when reading code. looks like that the conventional coding style of Python (and also C?) in Xen is to use (4) whitespaces instead of tabs? could anybody confirm this?
i searched in all tree and found bunch of files like this. if nobody complains, i will catch them all (both C and Python codes) and send in 1 patch to the list. any idea?
this patch replace tab with 4 whitespaces in (only) xm/main.py
Signed-off-by Nguyen Anh Quynh <[email protected]>
Signature · 2 lines
regards, aq
===== tools/python/xen/xm/main.py 1.52 vs edited =====
tools/python/xen/xm/main.py +8 -7
@@ -142,10 +142,10 @@ class Xm: """ self.name = args[0] if len(args) < 2: - args.append('help') - help = self.helparg(args) + args.append('help') + help = self.helparg(args) p = self.getprog(args[1], self.unknown) - if help or len(args) < 2: + if help or len(args) < 2: p.help(args[1:]) else: p.main(args[1:])
@@ -646,10 +646,11 @@ class ProgSedf(Prog): print "\nSet simple EDF parameters." def main(self, args): - if len(args) != 7: self.err("%s: Invalid argument(s)" % args[0]) - dom = args[1] - v = map(int, args[2:7]) - server.xend_domain_cpu_sedf_set(dom, *v) + if len(args) != 7: + self.err("%s: Invalid argument(s)" % args[0]) + dom = args[1] + v = map(int, args[2:7]) + server.xend_domain_cpu_sedf_set(dom, *v) xm.prog(ProgSedf)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel