def top_dir_response(self, environ, start_response):
        """When the server gets a '/' request, return a page listing all of
        the dirs in the egg directory.
        """
        start_response('200 OK', [('Content-Type', 'text/html')])
        out = StringIO()
        out.write('<html>\n<body>\n<h1>Package Index</h1>\n<ul>\n')
        dirs = os.listdir(self.topdir)
        dirs.sort(key=str.lower)
        for d in dirs:
            full = os.path.join(self.topdir,d)
            if os.path.isdir(full):
                out.write((d,d)%'<li><a href="%s">%s</a>\n')
        out.write('</ul>\n</body>\n</html>')
        return [out.getvalue()]
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/scripts/eggsrv.py/EggServer.top_dir_response/swapped operands of `%`