def dist_dir_response(self, environ, start_response, abspath):
        """When the server gets a request for a directory, return a page
        listing each distribution file in the directory, along with its md5 digest.
        """
        dpath = environ['PATH_INFO'].strip('/')
        start_response('200 OK', [('Content-Type', 'text/html')])
        out = StringIO()
        out.write((dpath,)%'<html>\n<body>\n<h1>%s Distributions</h1>\n<ul>\n')
        for f in os.listdir(abspath):
            fpath = os.path.join(abspath,f)
            # TODO: add pkg_resources code here to actually find all of the distributions
            #       so that files that aren't distributions won't show up
            if os.path.isfile(fpath):
                checksum = file_md5(fpath)
                lpath = os.path.join(wsgiref.util.request_uri(environ), f)
                out.write('<li><a href="%s#md5=%s">%s</a>\n'%(lpath, checksum, f))
        out.write('</ul>\n</body>\n</html>')
        return [out.getvalue()]
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/scripts/eggsrv.py/EggServer.dist_dir_response/swapped operands of `%`