[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] replace tabs with spaces of Python code


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: aq <aquynh@xxxxxxxxx>
  • Date: Thu, 19 May 2005 03:58:48 +0900
  • Delivery-date: Wed, 18 May 2005 18:58:16 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=t7oVrKt7UJRFmExyf5smhxvT3KCMZTpInfHCAhXsOHkhym7lntBIKp2Zs9uD4OaUr++csEE1jJovZD8DB7zE3KkGMHPgRch2ff87Uh+3ovVv6SBTa8HqkUzfrhCID6SHuYRNqtOowxfXBIln8Yt7YM8d079SaIiwcX+mm1OeHE0=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

hello,

there are many Python codes in tools/ that mix tab and space for
indentation, which might introduce some silly and hidden bugs. this is
a serious problem and must be avoid at all cost.

here is a patch (against cset 1.1452) to replace all tabs with spaces.
all the changes are pretty trivial, and i double checked everything.
please take a look to see if all the modifies are OK.

Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>


any idea? if nobody complains, i would prepare a patch like this for
-testing tree.


$ diffstat removetab.patch 
 logging/logging-0.4.9.2/test/mymodule.py |    6 +-
 xen/sv/CreateDomain.py                   |   34 ++++++++--------
 xen/sv/Daemon.py                         |    2 
 xen/sv/DomInfo.py                        |   55 ++++++++++++--------------
 xen/sv/DomList.py                        |   16 +++----
 xen/sv/GenTabbed.py                      |    6 +-
 xen/sv/HTMLBase.py                       |    4 -
 xen/sv/Main.py                           |   12 ++---
 xen/sv/NodeInfo.py                       |   16 +++----
 xen/sv/Wizard.py                         |   64 +++++++++++++++----------------
 xen/sv/util.py                           |    6 +-
 xen/web/SrvBase.py                       |    6 +-
 xen/web/SrvDir.py                        |    2 
 xen/xend/EventServer.py                  |   24 +++++------
 xen/xend/PrettyPrint.py                  |    6 +-
 xen/xend/XendClient.py                   |    6 +-
 xen/xend/XendDomain.py                   |    4 -
 xen/xend/encode.py                       |    2 
 xen/xend/server/SrvDomain.py             |    6 +-
 xen/xend/sxp.py                          |    2 
 xen/xm/main.py                           |   12 ++---
 21 files changed, 143 insertions(+), 148 deletions(-)

-- 
regards,
aq

Attachment: removetab.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.