incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mry...@apache.org
Subject svn commit: r818207 - in /incubator/tashi/trunk/src: tashi/client/tashi-client.py tashi/thrift/build.py utils/getLocality.py
Date Wed, 23 Sep 2009 19:03:46 GMT
Author: mryan3
Date: Wed Sep 23 19:03:45 2009
New Revision: 818207

URL: http://svn.apache.org/viewvc?rev=818207&view=rev
Log:
make tidy


Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py
    incubator/tashi/trunk/src/tashi/thrift/build.py
    incubator/tashi/trunk/src/utils/getLocality.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=818207&r1=818206&r2=818207&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Wed Sep 23 19:03:45 2009
@@ -318,9 +318,9 @@
 	if (type(obj) == Instance):
 		fetchUsers()
 		try:
-				obj.state = vmStates[obj.state]
+			obj.state = vmStates[obj.state]
 		except:
-				obj.state = 'Unknown'
+			obj.state = 'Unknown'
 		if (obj.userId in users):
 			obj.user = users[obj.userId].name
 		else:

Modified: incubator/tashi/trunk/src/tashi/thrift/build.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/thrift/build.py?rev=818207&r1=818206&r2=818207&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/thrift/build.py (original)
+++ incubator/tashi/trunk/src/tashi/thrift/build.py Wed Sep 23 19:03:45 2009
@@ -49,8 +49,8 @@
 	shutil.copytree(os.path.join('gen-py', 'messagingthrift'),
 			os.path.join('..', 'messaging', 'messagingthrift'))
 
-        print 'Generating Python code for \'layoutlocality.thrift\'...'
-        os.system('thrift --gen py:new_style layoutlocality.thrift')
+	print 'Generating Python code for \'layoutlocality.thrift\'...'
+	os.system('thrift --gen py:new_style layoutlocality.thrift')
  
-        print 'Copying generated code to \'tashi.services\' package...'
-        shutil.copytree('gen-py/layoutlocality', '../services/layoutlocality')
+	print 'Copying generated code to \'tashi.services\' package...'
+	shutil.copytree('gen-py/layoutlocality', '../services/layoutlocality')

Modified: incubator/tashi/trunk/src/utils/getLocality.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/utils/getLocality.py?rev=818207&r1=818206&r2=818207&view=diff
==============================================================================
--- incubator/tashi/trunk/src/utils/getLocality.py (original)
+++ incubator/tashi/trunk/src/utils/getLocality.py Wed Sep 23 19:03:45 2009
@@ -24,29 +24,29 @@
 transport.open()
 
 while True:
-       line1 = "\n"
-       line2 = "\n"
-       while line1 != "":
-               line1 = sys.stdin.readline()
-               if line1 == "":
-                       sys.exit(0)
-               if line1 != "\n":
-                       break
-       line1 = line1.strip()
-       while line2 != "":
-               line2 = sys.stdin.readline()
-               if line2 == "":
-                       sys.exit(0)
-               if line2 != "\n":
-                       break
-       line2 = line2.strip()
+	line1 = "\n"
+	line2 = "\n"
+	while line1 != "":
+		line1 = sys.stdin.readline()
+		if line1 == "":
+			sys.exit(0)
+		if line1 != "\n":
+			break
+	line1 = line1.strip()
+	while line2 != "":
+		line2 = sys.stdin.readline()
+		if line2 == "":
+			sys.exit(0)
+		if line2 != "\n":
+			break
+	line2 = line2.strip()
 
-       sources = line1.split(" ")
-       destinations = line2.split(" ")
+	sources = line1.split(" ")
+	destinations = line2.split(" ")
 
-       mat = client.getHopCountMatrix(sources, destinations)
-       for r in mat:
-               for c in r:
-                       print '%f\t'%c,
-               print '\n',
-       print '\n',
+	mat = client.getHopCountMatrix(sources, destinations)
+	for r in mat:
+		for c in r:
+			print '%f\t'%c,
+		print '\n',
+	print '\n',



Mime
View raw message