From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] remove tabs from xm/main.py
Date: Wed, 18 May 2005 18:33:56 +0900 [thread overview]
Message-ID: <9cde8bff050518023374e9620e@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
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 <aquynh@gmail.com>
--
regards,
aq
[-- Attachment #2: tab.patch --]
[-- Type: text/plain, Size: 1095 bytes --]
===== tools/python/xen/xm/main.py 1.52 vs edited =====
--- 1.52/tools/python/xen/xm/main.py 2005-05-13 00:04:56 +09:00
+++ edited/tools/python/xen/xm/main.py 2005-05-18 17:35:54 +09:00
@@ -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)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2005-05-18 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 9:33 aq [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-18 10:07 [PATCH] remove tabs from xm/main.py Ian Pratt
2005-05-18 15:44 ` aq
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9cde8bff050518023374e9620e@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.