diff wsgintegrate/dispatcher.py @ 14:e07b0f675c17

whitespace
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 11:43:25 -0800
parents 88b611ed2c5e
children 1a7bbd97dda4
line wrap: on
line diff
--- a/wsgintegrate/dispatcher.py	Thu Nov 17 11:36:19 2011 -0800
+++ b/wsgintegrate/dispatcher.py	Thu Nov 17 11:43:25 2011 -0800
@@ -7,23 +7,24 @@
 
 class Dispatcher(object):
 
-  def __init__(self, *apps):
-    self.apps = apps
-    self.codes = set([404])
+    def __init__(self, *apps):
+        self.apps = apps
+        self.codes = set([404])
 
-  def __call__(self, environ, start_response):
-    request = Request(environ)
-    for app in self.apps:
-      try:
-        response = request.get_response(app)
-        if response.status_int in self.codes:
-          continue
-        break
-      except exc.HTTPNotFound:
-        continue
-      except:
-        print app
-        raise
-    else:
-      response = exc.HTTPNotFound()
-    return response(environ, start_response)
+    def __call__(self, environ, start_response):
+        request = Request(environ)
+        for app in self.apps:
+            try:
+                response = request.get_response(app)
+                if response.status_int in self.codes:
+                    continue
+                break
+            except exc.HTTPNotFound:
+                continue
+            except:
+                print app
+                raise
+        else:
+            response = exc.HTTPNotFound()
+        return response(environ, start_response)
+