# HG changeset patch # User Jeff Hammel # Date 1330574498 28800 # Node ID e86a17fbe50fc1825aa3389ca03c1c25d09cc2bc # Parent fb03f34a982f61f8b3e5dc941b8dd34af3dcda09 remove extraneous class diff -r fb03f34a982f -r e86a17fbe50f simpypi/factory.py --- 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):