WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] [XEND] Remove hard tabs

To: "Hollis Blanchard" <hollisb@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] [XEND] Remove hard tabs
From: "Molle Bestefich" <molle.bestefich@xxxxxxxxx>
Date: Thu, 21 Sep 2006 07:58:17 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 20 Sep 2006 22:58:38 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZY3m/L3KSa0oJpxo+K3UQbnRBD62JgvQuF02gSMZMWhg4SH3dXJk3Fes/d2oyTlTVKLRXgRSvJgDAXj2GIBhHJ23g2PljD4M9BkHNxdKSBhFDUKUQ5QVRuFjW32NpqySrZ5W7dLonwDG2kL8gttJ8VKmT5TRRvmRMUeIngsM/Cs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <f7d90f962967a5a94fce.1158780092@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <f7d90f962967a5a94fce.1158780092@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hollis Blanchard:
[XEND] Remove hard tabs.

That's stupid, tabs are a relief to use when coding compared to spaces.

-       if type(devid) is str:
-           devicePath = '%s/device/%s' % (self.dompath, deviceClass)
-           for entry in xstransact.List(devicePath):
-               backend = xstransact.Read('%s/%s' % (devicePath, entry), 
"backend")
-               devName = xstransact.Read(backend, "dev")

+        if type(devid) is str:
+            devicePath = '%s/device/%s' % (self.dompath, deviceClass)
+            for entry in xstransact.List(devicePath):
+            backend = xstransact.Read('%s/%s' % (devicePath, entry), "backend")
+            devName = xstransact.Read(backend, "dev")

Seems to me like you're breaking Python indentation rules now?

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