changeset 28:e86a17fbe50f

remove extraneous class
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 20:01:38 -0800
parents fb03f34a982f
children 50bfe72e9506
files simpypi/factory.py
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/factory.py	Wed Feb 29 16:51:04 2012 -0800
+++ b/simpypi/factory.py	Wed Feb 29 20:01:38 2012 -0800
@@ -14,21 +14,6 @@
 from wsgi import SimPyPI
 from wsgiref import simple_server
 
-
-class PassthroughFileserver(object):
-    """serve files if they exist"""
-
-    def __init__(self, app, directory):
-        self.app = app
-        self.directory = directory
-        self.fileserver = StaticURLParser(directory)
-
-    def __call__(self, environ, start_response):
-        path = self.path(environ['PATH_INFO'].strip('/'))
-        if path and os.path.exists(os.path.join(self.directory, path)):
-            return self.fileserver(environ, start_response)
-        return self.app(environ, start_response)
-
 class NamespacedFileserver(DirectoryServer):
 
     def __init__(self, app, directory, namespace):