Convert all python code to use four-space indents instead of eight-space tabs.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_handler.py b/frontend/afe/rpc_handler.py
index f9ba2e2..70ef6cd 100644
--- a/frontend/afe/rpc_handler.py
+++ b/frontend/afe/rpc_handler.py
@@ -13,60 +13,60 @@
 
 
 class RpcMethodHolder(object):
-		'Dummy class to hold RPC interface methods as attributes.'
+    'Dummy class to hold RPC interface methods as attributes.'
 
 
 class RpcHandler(object):
-	def __init__(self, rpc_interface_modules, document_module=None):
-		self._rpc_methods = RpcMethodHolder()
-		self._dispatcher = serviceHandler.ServiceHandler(
-		    self._rpc_methods)
+    def __init__(self, rpc_interface_modules, document_module=None):
+        self._rpc_methods = RpcMethodHolder()
+        self._dispatcher = serviceHandler.ServiceHandler(
+            self._rpc_methods)
 
-		# store all methods from interface modules
-		for module in rpc_interface_modules:
-			self._grab_methods_from(module)
+        # store all methods from interface modules
+        for module in rpc_interface_modules:
+            self._grab_methods_from(module)
 
-		# get documentation for rpc_interface we can send back to the
-		# user
-		if document_module is None:
-			document_module = rpc_interface_modules[0]
-		self.html_doc = pydoc.html.document(document_module)
+        # get documentation for rpc_interface we can send back to the
+        # user
+        if document_module is None:
+            document_module = rpc_interface_modules[0]
+        self.html_doc = pydoc.html.document(document_module)
 
 
-	def handle_rpc_request(self, request):
-		response = django.http.HttpResponse()
-		if len(request.POST):
-			response.write(self._dispatcher.handleRequest(
-			    request.raw_post_data))
-		else:
-			response.write(self.html_doc)
+    def handle_rpc_request(self, request):
+        response = django.http.HttpResponse()
+        if len(request.POST):
+            response.write(self._dispatcher.handleRequest(
+                request.raw_post_data))
+        else:
+            response.write(self.html_doc)
 
-		response['Content-length'] = str(len(response.content))
-		return response
+        response['Content-length'] = str(len(response.content))
+        return response
 
 
-	@staticmethod
-	def _allow_keyword_args(f):
-		"""\
-		Decorator to allow a function to take keyword args even though
-		the RPC layer doesn't support that.  The decorated function
-		assumes its last argument is a dictionary of keyword args and
-		passes them to the original function as keyword args.
-		"""
-		def new_fn(*args):
-			assert args
-			keyword_args = args[-1]
-			args = args[:-1]
-			return f(*args, **keyword_args)
-		new_fn.func_name = f.func_name
-		return new_fn
+    @staticmethod
+    def _allow_keyword_args(f):
+        """\
+        Decorator to allow a function to take keyword args even though
+        the RPC layer doesn't support that.  The decorated function
+        assumes its last argument is a dictionary of keyword args and
+        passes them to the original function as keyword args.
+        """
+        def new_fn(*args):
+            assert args
+            keyword_args = args[-1]
+            args = args[:-1]
+            return f(*args, **keyword_args)
+        new_fn.func_name = f.func_name
+        return new_fn
 
 
-	def _grab_methods_from(self, module):
-		for name in dir(module):
-			attribute = getattr(module, name)
-			if not callable(attribute):
-				continue
-			decorated_function = (
-			    RpcHandler._allow_keyword_args(attribute))
-			setattr(self._rpc_methods, name, decorated_function)
+    def _grab_methods_from(self, module):
+        for name in dir(module):
+            attribute = getattr(module, name)
+            if not callable(attribute):
+                continue
+            decorated_function = (
+                RpcHandler._allow_keyword_args(attribute))
+            setattr(self._rpc_methods, name, decorated_function)